Skip to content

tanstack react query is showing loading. #5321

Closed Answered by daudln
daudln asked this question in General
Discussion options

You must be logged in to vote

Thanks team, I have solved this issue by updating my query client like this.

const queryClient = new QueryClient({
  defaultOptions: {
    queries: {
      networkMode: 'offlineFirst',
    },
  },
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by daudln
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants