Skip to content

Commit

Permalink
fix(SLB-146): tweak swr-revalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Apr 15, 2024
1 parent 004a708 commit 5b66e05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ui/src/utils/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export function useOperation<TOperation extends AnyOperationId>(
variables?.pathname?.indexOf('__preview') > 0
? {
suspense: false,
revalidateIfStale: true,
revalidateOnMount: true,
keepPreviousData: true,
}
: { suspense: false },
Expand Down

0 comments on commit 5b66e05

Please sign in to comment.