Skip to content

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

Open
@BierDav

Description

@BierDav

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions