We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3d05c6 commit 2799d01Copy full SHA for 2799d01
src/components/base/Header.tsx
@@ -21,7 +21,7 @@ export type MainHeaderProps = {};
21
22
function Header(props: MainHeaderProps) {
23
const dispatch = useDispatch();
24
- const { data: notificationCountData } = useQuery(NOTIFICATION_COUNT);
+ const { data: notificationCountData, refetch } = useQuery(NOTIFICATION_COUNT);
25
26
const { user, onLoginClick, onLogout, customHeader } = useHeader();
27
const [userMenu, toggleUserMenu] = useToggle(false);
@@ -42,6 +42,7 @@ function Header(props: MainHeaderProps) {
42
dispatch(showAuthModal('LOGIN'));
43
return;
44
}
45
+ refetch();
46
};
47
48
const notificationCount = notificationCountData?.notificationCount ?? 0;
0 commit comments