query icon indicating copy to clipboard operation
query copied to clipboard

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

Open BierDav opened this issue 1 year ago • 2 comments

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 avatar Jan 20 '25 20:01 BierDav

Hello, @BierDav. I can't reach out to your reproducible example, please check it avalible in lncognito mode, thanks.

viiccwen avatar Jan 25 '25 08:01 viiccwen

It does work for me in incognito 🫣

BierDav avatar Jan 25 '25 12:01 BierDav