useMutation promise not resolving when offline. How do I use promises while offline? #2015
Unanswered
bensoutendijk
asked this question in
Q&A
Replies: 1 comment
-
@bensoutendijk did you find a solution? I am wondering how to support offline. My mutation fails with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project, I am trying to implement offline support. However, I must use Promises in order to avoid race conditions while online. For example, I have a form which creates a new object in the database with Urql's
useMutation
However, this promise seems to never be resolved while offline, so the page does not navigate after the request. How can I use the promises generated with useMutation and useQuery while offline?
Beta Was this translation helpful? Give feedback.
All reactions