[firebase_database]: Database listener clears children when performing another query in same ref #13822
Open
1 task done
Labels
blocked: firebase-sdk
platform: ios
Issues / PRs which are specifically for iOS.
plugin: database
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Database
Which platforms are affected?
iOS
Description
For a chat application I am doing a double query, I have a listener for new messages, and a paginated query for old messages.
I just discovered that my listener is impacted by the queries I do on that same path, which I believe shouldn't be the case
Reproducing the issue
I created this code to reproduce the issue. You can see that by performing another query in the same path, the database listeners emits a new value with no children!
Firebase Core version
3.7.0
Flutter Version
3.24.2
Relevant Log Output
Restarted application in 854ms. flutter: listener 5 flutter: obtained previous messages 3 flutter: listener 0
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: