Suspense Query sometimes does not fallback and just render? #6034
-
I'm using React, Query V4, React Router V5. I use community's useSuspenseQuery that assert data is non-null with suspense. In my product's Sentry Error Report, few was getting Type Error [Cannot read the property from undefined]. The undefined was the data from useSuspenseQuery. Majority of peoples don't have this problem, but only a few has this problem. When I watch track trace, there are no XHR(that means send API) block in sentry, then type error comes. I think there's some problem with pending Query result in Suspense but I can't reproduce the error(Suspense and query fetching works just fine for me and teams). We are not using cacelQuery or enabled options that would make data undefined. So don't know how to start fix.... Just thinking about removing suspense. Is anyone experiencing some kind of this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
[Self Answer] |
Beta Was this translation helpful? Give feedback.
https://stackoverflow.com/questions/75538301/reactquery-queryfn-passed-to-usequery-is-never-run-happens-only-on-chrome
[Self Answer]
Was this problem.