Skip to content

Commit

Permalink
fix: invalidate cache after wallet set edit
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysu committed Jan 15, 2025
1 parent de7b9c0 commit 374c40c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ActionFunctionArgs } from '@remix-run/node';

import { invalidateCache } from '~/lib/cache';
import { sdk } from '~/lib/sdk';
import {
assertCircleErrorResponse,
Expand Down Expand Up @@ -30,6 +31,8 @@ export async function action({ request }: ActionFunctionArgs) {
name,
});

invalidateCache('walletSets');

return successResponse('Success');
} catch (e: unknown) {
assertCircleErrorResponse(e);
Expand Down

0 comments on commit 374c40c

Please sign in to comment.