From 6b70d038788451e2aab5dd5c3a81c160e95c1729 Mon Sep 17 00:00:00 2001 From: Clumsy-Coder <19594044+Clumsy-Coder@users.noreply.github.com> Date: Mon, 15 Jan 2024 08:36:53 -0700 Subject: [PATCH] chore(hooks): disable refetch on mount for `all problems` ## what - disable refetch on mount for `all problems` ## how ## why ## where - ./src/hooks/index.ts ## usage --- src/hooks/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hooks/index.ts b/src/hooks/index.ts index 423fae4..3bed30a 100644 --- a/src/hooks/index.ts +++ b/src/hooks/index.ts @@ -91,6 +91,7 @@ export const useFetchProblems = () => { queryFn: async () => axios.get("/api/problems").then((res) => res.data), refetchOnWindowFocus: false, + refetchOnMount: false, }); };