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
So it reads the correct data and detects the change in data true having 2 different data requested but it wont call the Action i passed as an argument.
Even listening to an specific child (name) doesnt register an change
The text was updated successfully, but these errors were encountered:
RPGFabi
changed the title
Can't create Observer
Observer won't detect Change
Sep 1, 2022
Currently I try an Observer to get me updates from my DB, which looks like this:
root
---schoolData
------name
------etc.
I have an Class, which defines the Schooldata and I can read and store it.
When I try to add an Observer with this code
I get an message, that it is created, but when I change an child's value or add an child, the Test2 function wont trigger.
What am I doing wrong?
Edit: Capturing and printing an exception in AsObservable() shows, states this:
So it reads the correct data and detects the change in data true having 2 different data requested but it wont call the Action i passed as an argument.
Even listening to an specific child (name) doesnt register an change
The text was updated successfully, but these errors were encountered: