Skip to content

Commit 9fcda5a

Browse files
Merge pull request #507 from meowzip/hyoni
Fix: togglePushNotification 성공 후 invalidateQueries 수정
2 parents 0f6268e + f012015 commit 9fcda5a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/app/onboard/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ const OnBoardPage = () => {
4646
mutationFn: () => togglePushNotificationOnServer(),
4747
onSuccess: (data: any) => {
4848
if (data.status === 'OK') {
49-
queryClient.invalidateQueries({
50-
predicate: query => query.queryKey[0] === 'getPushNoti'
51-
});
49+
queryClient.invalidateQueries({ queryKey: ['getPushNoti'] });
5250
}
5351
}
5452
});

0 commit comments

Comments
 (0)