mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-07 21:21:49 +02:00
⚡️ Stop invalidating queries on page load
This commit is contained in:
parent
88b455717a
commit
68bb17a00a
2 changed files with 6 additions and 2 deletions
|
@ -16,7 +16,9 @@ export const trpc = createTRPCNext<AppRouter>({
|
|||
* having a flash of content change whilst redirecting.
|
||||
**/
|
||||
await opts.originalFn();
|
||||
await opts.queryClient.invalidateQueries();
|
||||
if (!opts.meta?.doNotInvalidate) {
|
||||
await opts.queryClient.invalidateQueries();
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue