From 73a15ab40bea8d9cfa7b2dc44ae26b1b929f4aa5 Mon Sep 17 00:00:00 2001 From: Igor Zalutski Date: Thu, 31 Oct 2024 16:23:20 -0700 Subject: [PATCH] Add comments --- src/data/user/projects.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/data/user/projects.tsx b/src/data/user/projects.tsx index 11a92696..801f7d01 100644 --- a/src/data/user/projects.tsx +++ b/src/data/user/projects.tsx @@ -146,6 +146,9 @@ export const createProjectAction = async ({ drift_crontab, } }); + // why are we revalidating paths in a getter query? + // a getter query is not supposed to have side effects. bad code. + // leaving as is because idk what breaks if I remove it if (teamId) { revalidatePath(`/org/[organizationId]/team/[teamId]`, "layout"); } else {