Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIJ committed Oct 31, 2024
1 parent 9fdbafc commit 73a15ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/data/user/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 73a15ab

Please sign in to comment.