Implement get()
method from native SDKs for Realtime Database
#6089
Unanswered
puf
asked this question in
Feature request
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.
-
The native SDKs added a new
get()
method to solve an issue with getting stale data on mobile devices when disk persistence is enabled, and the code usesaddListenerForSingleValueEvent
/observeSingleEvent
. The FlutterFire library wraps these last two methods, but does not yet implement theget()
method. For feature parity and to allow user to reliable get the latest data, it would be good if FlutterFire also wrappedget()
.For context on the problem, see https://stackoverflow.com/questions/34486417/firebase-offline-capabilities-and-addlistenerforsinglevalueevent/34487195#34487195
For details on the difference between
get()
andonce()
, see: https://stackoverflow.com/questions/66072471/what-is-the-difference-between-get-and-addlistenerforsinglevalueeventBeta Was this translation helpful? Give feedback.
All reactions