TanStackT
TanStack3y ago
5 replies
clean-aquamarine

Persister Timing

Hey! I noticed that theres about a 1 second delay between the state updating on the screen and the write being called to the persister. Any way to configure that to be faster? On logout I call queryClient.clear() and if the user happens to refresh the page fast enough, their auth cookie gets unset but the cache still holds the user information. Unlikely a user will see this, but just curious if I can do anything to fix it
Was this page helpful?