Dehydrate query.promise called when there is no network connection #8228
Replies: 1 comment 1 reply
-
how does the app receive the promise from the server if it doesn’t have network connection ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
I recently realised after upgrading to the latest react query version that there is an error from a certain query that we receive when user is offline.
Specifically:
Case steps:
networkMode: 'online'
Promise.reject(new Error('redacted'))
.As far as I understand, when query is in the pending state, we are trying to resolve that pending promise.
My question, is this behaviour intended if app does not have any network connection?
Beta Was this translation helpful? Give feedback.
All reactions