New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query doesn't wait for Mutation to finish #81
Comments
Can you try whether this is still an issue with 0.3.0-next1 please? You can install it using the “next” tag. |
I think we'd need a reproduction on CodeSandbox to confirm this. There's only two calls to There's also the case of calling https://github.com/FormidableLabs/urql/blob/master/src/components/client.tsx#L57-L62 |
@mellogarrett any update? It'd be great if we could get a CodeSandbox running for this |
Hey @kitten I'm sorry, I ended up just using Axios to make graphql requests from |
@mellogarrett Alright, since this is not reproducible right now and stale I'll close the issue. Sorry about that, let's see if someone else hits a similar case in the future |
* Add (non breaking) reproduction for #80 * Add missing clearOptimistic * Ensure that pessimism is at 1.1.2 * Clean up new examples-1 test * Upgrade to pessimism 1.1.3 * Remove obsolete snapshot
I have a component like so:
When I fire the
updateItem
mutation, thegetItems
query is immediately reran, giving me items back before the mutation finishes. This results in a weird ux where a user edits a field, hits "save" (updateItem), and the field flashes back to it's old value, then to the new value again.Is the query supposed to fire again before the mutation completes?
The text was updated successfully, but these errors were encountered: