We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f6268e + f012015 commit 9fcda5aCopy full SHA for 9fcda5a
src/app/onboard/page.tsx
@@ -46,9 +46,7 @@ const OnBoardPage = () => {
46
mutationFn: () => togglePushNotificationOnServer(),
47
onSuccess: (data: any) => {
48
if (data.status === 'OK') {
49
- queryClient.invalidateQueries({
50
- predicate: query => query.queryKey[0] === 'getPushNoti'
51
- });
+ queryClient.invalidateQueries({ queryKey: ['getPushNoti'] });
52
}
53
54
});
0 commit comments