You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constresult=useQuery("foo",async()=>{console.log('query ran')awaitnewPromise((res)=>setTimeout(res,10000));return()=>"foo"+Math.random();},// no suspense?);
Expected behavior
Component should suspend
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform
macOS, chrome
react-query version
3.34.16
TypeScript version
No response
Additional context
This is not happening in my real project as far as I know, it's something I only noticed while building the reproduction repo for my previous bug report #3432
The text was updated successfully, but these errors were encountered:
Thanks, I am using Typescript in my main project and only used JS to produce the previous bug report, which explains:
This is not happening in my real project as far as I know, it's something I only noticed while building the reproduction repo for my previous bug report #3432
Describe the bug
When
{suspense: true}
is enabled globally, my consuming component is not suspending unless I explicitly enable it again in theuseQuery()
optionsYour minimal, reproducible example
https://github.com/joshribakoff-sm/rq-bug/tree/no-suspense
Steps to reproduce
Wrap app in query client:
Try to consume it and don't change any options:
Expected behavior
Component should suspend
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform
macOS, chrome
react-query version
3.34.16
TypeScript version
No response
Additional context
This is not happening in my real project as far as I know, it's something I only noticed while building the reproduction repo for my previous bug report #3432
The text was updated successfully, but these errors were encountered: