Skip to content

Browser loading indicator doesn't stop when using React.use with experimental_prefetchInRender #10110

@ckarli

Description

@ckarli

Describe the bug

const data = React.use(query.promise)

Your minimal, reproducible example

https://codesandbox.io/p/github/ckarli/tanstack-suspense-demo/

Steps to reproduce

Page refresh indicator doesn't stop when using use(promise) with experimental_prefetchInRender enabled

Expected behavior

It should stop when promise returns data

How often does this bug happen?

Every time

Screenshots or Videos

20260210-1326-42.3625663.mp4

Platform

Latest chrome

Tanstack Query adapter

react-query

TanStack Query version

5.90.20

TypeScript version

5.9.3

Additional context

On production, after 60 second indicator stops.It goes on indefinitely on local dev.

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