You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run the above code, the user document gets updated twice leading to: profile.count == 2
If I don't set "useFirestoreForProfile", it works as expected: user.count == 1
If I don't have another document delete or update before updating the user document, it does work, too. (even with "useFirestoreForProfile" == true)
Even if I am running this from outside via node it works as expected.
That is why I am considering this as a bug.
The text was updated successfully, but these errors were encountered:
bookhahn
changed the title
"useFirestoreForProfile" leads to trigger update twice with a preceding async await.
"useFirestoreForProfile" leads to trigger update twice with a preceding async document delete
Apr 7, 2022
Hi!
I want to delete and update a couple of docs in a redux action, but I have boiled down the problem to the following:
If I run the above code, the user document gets updated twice leading to:
profile.count == 2
If I don't set "useFirestoreForProfile", it works as expected:
user.count == 1
If I don't have another document delete or update before updating the user document, it does work, too. (even with "useFirestoreForProfile" == true)
Even if I am running this from outside via node it works as expected.
That is why I am considering this as a bug.
Note: I am using firebase emulators.
[email protected]
[email protected]
The text was updated successfully, but these errors were encountered: