Mutations that should cancel each other out (create + immediate delete)? #991
Unanswered
christianalares
asked this question in
Q&A
Replies: 0 comments
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 all! I'm trying to learn how the cancellation of mutations in the collection works. Currently I get race conditions if a quickly add a record and delete it immediately since the record does not exist in the db yet when trying to delete it. I've read this in the docs:
However to my understanding in this repro, the insertion and deletion is made in two different transaction, but I cant find the correct way to deal with this?
Here is a repro:
https://github.com/christianalares/tanstack-db-race-condition-repro
Beta Was this translation helpful? Give feedback.
All reactions