Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[solid-query] Queries with isInvalidated: true won't get refetched on mount #8554

Open
BierDav opened this issue Jan 20, 2025 · 0 comments
Open

Comments

@BierDav
Copy link
Contributor

BierDav commented Jan 20, 2025

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

  1. 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)
  2. Open Network tab in dev tools
  3. Click on "Invalidate query"
  4. Click on "Go back"
  5. 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

@BierDav BierDav changed the title [solid-query] Queries with ìsInvalidated` don't get refetched on mount [solid-query] Queries with isInvalidated: true don't get refetched on mount Jan 20, 2025
@BierDav BierDav changed the title [solid-query] Queries with isInvalidated: true don't get refetched on mount [solid-query] Queries with isInvalidated: true won't get refetched on mount Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant