query icon indicating copy to clipboard operation
query copied to clipboard

[Solid] Browser stuck in loading state when using enabled property

Open jaye opened this issue 3 months ago • 0 comments

Describe the bug

When using alongside Tanstack Start, setting the enabled property to false on page load causes the browser tab to get stuck in a loading state, even after the query is enabled and finished.

Your minimal, reproducible example

https://codesandbox.io/p/devbox/heuristic-mendeleev-hg7r3p

Steps to reproduce

Navigate to the /demo route.

Expected behavior

The browser should not get stuck in a loading state (the spinner on the page tab).

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

OS: Windows 11 Browsers: Chrome 142.0.7444.134, Firefox 144.0.2

Tanstack Query adapter

solid-query

TanStack Query version

v5.90.10

TypeScript version

No response

Additional context

The behaviour does not to occur in versions older than 5.59.0.

From version 5.59.0 until 5.85.5, the error experimental_prefetchInRender feature flag is not enabled (#8209) appears to prevent this from happening, however, enabling this feature causes it to happen again.

I was not able to reproduce the behaviour using React.

jaye avatar Nov 09 '25 14:11 jaye