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.
2 parents d3d05c6 + 2799d01 commit fdfedb4Copy full SHA for fdfedb4
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