Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
feat: Invaldiate passkey fetch on mutation
Browse files Browse the repository at this point in the history
Signed-off-by: AlexNg <[email protected]>
  • Loading branch information
caffeine-addictt committed Aug 13, 2024
1 parent c37a179 commit 891d9b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/pages/user/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const AccountPasskeys = () => {
title: 'Passkey deleted',
description: 'Passkey deleted successfully',
});
queryClient.invalidateQueries({ queryKey: ['fetch-passkeys'] });
refetch();
},
onError: (err) => {
Expand Down Expand Up @@ -150,6 +151,7 @@ export const AccountPasskeys = () => {
title: 'Passkey registered',
description: 'Passkey registered successfully',
});
queryClient.invalidateQueries({ queryKey: ['fetch-passkeys'] });
refetch();
},
onError: (err) => {
Expand Down

0 comments on commit 891d9b2

Please sign in to comment.