Skip to content

Commit

Permalink
Specify load function to invalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwijos committed Jan 18, 2024
1 parent fac22a9 commit d6139ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/routes/(main)/me/account/payment/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
return async ({ result }) => {
if (!result?.data.success) return;
invalidate('server:fetch');
invalidate('server:card');
await applyAction(result); // Apply the action, which will update the form state
};
};
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(main)/me/account/prepay/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
return async ({ result }) => {
if (!result?.data.success) return;
invalidate('server:fetch');
invalidate('server:balance');
await applyAction(result); // Apply the action, which will update the form state
};
};
Expand Down

0 comments on commit d6139ea

Please sign in to comment.