Replies: 2 comments 5 replies
-
|
this is the Gemini PRO diagnosis. It sounds ok, but it makes no sense to me the part of "... blocks the optimistic result from ever being emitted...". Here an extract of the full response:
Why the network error takes precedence over the optimistic result? |
Beta Was this translation helpful? Give feedback.
-
|
I can't access the recently created data by executing a query that tries to fetch it by id. I'm really lost here because any solution that I tried didn't work. I change the requestPolicy to 'cache-first', and it didn't work either. How can I query the data created offline? I don't want to change to another library, but make URQL work in offline mode is near to impossible. Anyone have any successful cases here? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone:
I tried many options to fix this issue. I asked many IAs for help to solve this issue, and none of the offered solutions solve the problem. The usecase is very simple:
I have a very simple vue2 prototype web app (i know, soon i will update to vue3, but not yet) to handle a very specific requirement: Get the immediate result of the mutation that inserts or updates an item inside a list. Because the package "@urql/vue" only supports vue3, with the help of IA i handcrafted two composables compatible with vue2. This functions uses the wonka's stream API for reactivity, This approach avoids that front hangs awaiting the promise to solve against backend. The useQuery one works like a charm: When i inserts a new document, the list is updated with the new data, but i need to await the mutation because the response is used to display the new data in a summary screen that i develop. all works fine, but when the app is in offline mode, the awaits of mutation hangs until the app is online again. Here the code of the composables, the client configuration and the vue2 component:
This is a temporary version of the composables "fixed" by the IA trying to solve the issue, but nothing happens
This is the client configuration, also modified by the IA to track the posible errors in the updates an optimistic props:
Finally, the vue2 component:
Any help will be very appreciate it.
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions