From 374c40c10e4242bc533e315e139862334e5ac8e1 Mon Sep 17 00:00:00 2001 From: Kris Urbas <605420+krzysu@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:00:58 +0100 Subject: [PATCH] fix: invalidate cache after wallet set edit --- packages/circle-demo-webapp/app/routes/api.updateWalletSet.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/circle-demo-webapp/app/routes/api.updateWalletSet.tsx b/packages/circle-demo-webapp/app/routes/api.updateWalletSet.tsx index 2401e9c..a872a62 100644 --- a/packages/circle-demo-webapp/app/routes/api.updateWalletSet.tsx +++ b/packages/circle-demo-webapp/app/routes/api.updateWalletSet.tsx @@ -1,5 +1,6 @@ import { ActionFunctionArgs } from '@remix-run/node'; +import { invalidateCache } from '~/lib/cache'; import { sdk } from '~/lib/sdk'; import { assertCircleErrorResponse, @@ -30,6 +31,8 @@ export async function action({ request }: ActionFunctionArgs) { name, }); + invalidateCache('walletSets'); + return successResponse('Success'); } catch (e: unknown) { assertCircleErrorResponse(e);