From cbc5951f7b7499a715e768e9cb14226fd8efaa9a Mon Sep 17 00:00:00 2001 From: intameli Date: Thu, 7 Nov 2024 17:17:38 +1000 Subject: [PATCH] fix: fixed bug with loading --- .../src/app/_components/_projects/create-project-dialog.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/nextjs/src/app/_components/_projects/create-project-dialog.tsx b/apps/nextjs/src/app/_components/_projects/create-project-dialog.tsx index edb537b..5a62aff 100644 --- a/apps/nextjs/src/app/_components/_projects/create-project-dialog.tsx +++ b/apps/nextjs/src/app/_components/_projects/create-project-dialog.tsx @@ -35,6 +35,7 @@ export function CreateProjectDialog({ const [description, setDescription] = useState(""); const { data: templates = [] } = api.template.getAll.useQuery(); + const utils = api.useUtils(); const createProject = api.project.create.useMutation({ onSuccess: async (newProject) => { @@ -46,6 +47,7 @@ export function CreateProjectDialog({ }); await revalidate("/"); await revalidate("/tasks"); + await utils.user.byWallet.invalidate(); router.push(`/tasks/${newProject.id.toString()}`); }, });