Describe the bug#
When executing the Trigger Loading action in the devtools the query's status is successfully updated to "pending" and the nearest suspense boundary is successfully triggered. However when attempting to execute the Restore Loading action, the query's status is not reset and the dev tools become disabled.
Your minimal, reproducible example#
https://stackblitz.com/edit/tanstack-query-ensbun?file=src%2Findex.jsx
Steps to reproduce#
- Click on the
reopData query in the react query dev tools.
- Click on
Trigger Loading. Observe the app is in its loading state and the query has a status of "pending"
- Click on
Restore Loading. Observe the app remains in its loading state and the devtool action buttons become disabled.
Expected behavior#
When I click Trigger Loading the query should go into it's "pending" state and trigger the nearest Suspense boundary. When I subsequently click Restore Loading the query's status should revert to success as it does when you Trigger and then Restore Error.
How often does this bug happen?#
Every time
Screenshots or Videos#

Platform#
OS: MacOS
Browser:
Arc 1.34.0 (47465)
Chromium Engine Version 122.0.6261.129
Tanstack Query adapter#
None
TanStack Query version#
5.28.28
TypeScript version#
No response
Additional context#
Derived from a conversation on the Tanstack Discord:
https://discord.com/channels/719702312431386674/1222015700370194452
@ardeora can you have a look please? FYI, this is reproducible with normal
useQueryas well, so it isn't suspense related imo