Skip to content

Commit

Permalink
chore: typo (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltociear authored Dec 26, 2023
1 parent 54bf8a5 commit ce93471
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/root/react-query-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const persistOptions: Omit<PersistQueryClientOptions, 'queryClient'> = {
maxAge: 1000 * 60 * 60 * 24 * 7, // 1 week
dehydrateOptions: {
shouldDehydrateQuery: (query) => {
const queryIsReadyForPersistance = query.state.status === 'success'
const queryIsReadyForPersistence = query.state.status === 'success'

if (query.meta?.persist === false) return false

if (queryIsReadyForPersistance) {
if (queryIsReadyForPersistence) {
return (
!((query.state?.data as any)?.pages?.length > 1) ||
(!!query.state.data && !(query.state.data as any).pages)
Expand Down

0 comments on commit ce93471

Please sign in to comment.