-
Notifications
You must be signed in to change notification settings - Fork 969
Closed
Description
[REQUIRED] Describe your environment
- Operating System version: macOS Big Sur
- Browser version: Chrome
91.0.4472.164
- Firebase SDK version:
9.0.0-beta.6
- Firebase Product: database
[REQUIRED] Describe the problem
The onValue
listener stops listening for new values on a reference after a transaction.
Steps to reproduce:
Runnable repro is available in codesandbox: https://codesandbox.io/s/rtdb-transaction-update-repro-6u0qt?file=/src/index.ts
- Click the "SET" Increment button a few times. The number next to Current value from RTDB is: will change as expected.
- Click the "TRANSACTION" Increment button a few times. The number next to Current value from RTDB is: will stop updating
⚠️ - Check the console logs. You'll see that every transaction completed successfully.
- Click the "SET" Increment button again. The number next to Current value from RTDB is: still won't update.
- Refresh the page. The number next to Current value from RTDB is: will be significantly higher from all of your previous clicks, proving that the transactions worked.