TanStackT
TanStack6mo ago
1 reply
standard-azure

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...
Was this page helpful?