Skip to content

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

@jaye

Description

@jaye

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.

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