Skip to content

UseQuery in Tanstack Router (Solid) hangs foreverΒ #5065

@ldhwaddell

Description

@ldhwaddell

Which project does this relate to?

Router

Describe the bug

In a solid based Tanstack router or start app, using useQuery outside of a route loader causes the browser to stay in loading state even once data has finished loading.

I have also tested this with a setupRouterSsrQueryIntegration function that mirrors the React one and has the same issues (test-ssr-query-integration.tsx).

Your Example Website or App

https://github.com/ldhwaddell/tanstack-solid-router-query

Steps to Reproduce the Bug or Issue

  1. Clone the repo above
  2. Run bun i
  3. Run bun dev and visit localhost:3000

Expected behavior

The browser will indicate that it has finished loading once the data populates on screen.

Screenshots or Videos

Screen.Recording.2025-09-01.at.6.20.40.PM.mov

Platform

  • Router / Start Version: 1.131.31
  • OS: Mac
  • Browser: chrome, safari
  • Browser Version: 140.0.7339.77
  • Bundler: vite
  • Bundler Version: 7.1.4

Additional context

I recognize this may have to do with how Tanstack Query works under the hood in Solid. I thought it best to report the issue here rather than the Query repo, as the Query lib is still working as expected - the router is having the trouble.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions