We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usually, this is a code smell.
In app/provider.tsx, you used const [queryClient] = useState(() => new QueryClient());.
app/provider.tsx
const [queryClient] = useState(() => new QueryClient());
The tanstack docs define the queryClient outside of the function.
const queryClient = new QueryClient() export default function App() { return ( <QueryClientProvider client={queryClient}> <Example /> </QueryClientProvider> ) }
I think useRef could also be a potential solution.
useRef
The text was updated successfully, but these errors were encountered:
that's correct, could you do a PR sir?
Sorry, something went wrong.
No branches or pull requests
Usually, this is a code smell.
In
app/provider.tsx
, you usedconst [queryClient] = useState(() => new QueryClient());
.The tanstack docs define the queryClient outside of the function.
I think
useRef
could also be a potential solution.The text was updated successfully, but these errors were encountered: