Skip to content

Commit

Permalink
add staleTime in queryClient
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlli committed Mar 25, 2022
1 parent 0743a92 commit 5da0e4f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ import Details from './pages/Details';

import './global.css'

const client = new QueryClient();
const client = new QueryClient({
defaultOptions: {
queries: {
staleTime: 10000,
},
},
});

ReactDOM.render(
<React.StrictMode>
Expand Down

1 comment on commit 5da0e4f

@vercel
Copy link

@vercel vercel bot commented on 5da0e4f Mar 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.