Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
chore(hooks): disable refetch on mount for all problems
Browse files Browse the repository at this point in the history
  ## what
  - disable refetch on mount for `all problems`

  ## how

  ## why

  ## where
  - ./src/hooks/index.ts

  ## usage
  • Loading branch information
Clumsy-Coder committed Jan 15, 2024
1 parent 748b9cf commit 6b70d03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const useFetchProblems = () => {
queryFn: async () =>
axios.get<Problem[]>("/api/problems").then((res) => res.data),
refetchOnWindowFocus: false,
refetchOnMount: false,
});
};

Expand Down

0 comments on commit 6b70d03

Please sign in to comment.