Open
Description
Describe the bug
Youtube-Video that explains the issue: https://youtube.com/shorts/mYEFCUWieqM
Your minimal, reproducible example
https://codesandbox.io/p/github/BierDav/temp-tanstack-query-ssr-bug/invalidate-bug
Steps to reproduce
- Click on "Go to other page" (when you initialy start it might fail with a hydration error. just press ctrl+shift+r to hard reload)
- Open Network tab in dev tools
- Click on "Invalidate query"
- Click on "Go back"
- You can observe that no request is made
Expected behavior
Queries should be refetched when they have been invalided in unmounted state as they get mounted again.
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Chrome
- JS-Environment: Bun
Tanstack Query adapter
solid-query
TanStack Query version
5.64.2
TypeScript version
No response
Additional context
No response