fix: Prefetch non-archived notificatios only (#9869)

This commit is contained in:
Hemachandar authored and GitHub committed 2025-08-07 22:22:53 +05:30
1 parent f28f41eb76
commit 5b19f7c711
2 files changed
+2 -2

No files matched your search

@@ -20,7 +20,7 @@ const NotificationsPopover: React.FC = ({ children }: Props) => {
const scrollableRef = React.useRef<HTMLDivElement>(null);
React.useEffect(() => {
void notifications.fetchPage({});
void notifications.fetchPage({ archived: false });
}, [notifications]);
const handleRequestClose = React.useCallback(() => {
+1 -1
View File
@@ -17,7 +17,7 @@ export default class NotificationsStore extends Store<Notification> {
@action
fetchPage = async (
options: PaginationParams | undefined
options: ({ archived?: boolean } & PaginationParams) | undefined
): Promise<Notification[]> => {
this.isFetching = true;