T
TanStack5mo ago
rival-black

Suspense Query No Enabled Flag

In my current app, we are using xstate for auth management, and we dynamically update axios interceptor to add token into request. The issue come from when we refresh app and xstate is not initallized yet and suspensequery start making request without token which end up throwing up error. how to handle that case. i understand the point of suspensequery but is there a way to stop it till the token comes in...
1 Reply
ambitious-aqua
ambitious-aqua5mo ago
Don't render the component until it's ready

Did you find this page helpful?