-
Notifications
You must be signed in to change notification settings - Fork 272
Return snapshot data in GeoQueryEventListener #89
Comments
Let's keep issues small in scope when possible. So this issue can be about snapshot data and #86 describes another improvement. We can make a meta-issue or a label to group them if you want. In FirebaseUI we call what you're describing a I think it would be reasonable to return the The main question is should we:
|
Do we want to work towards 3.0.0 and make a few breaking changes or not? If so I'd vote to change the parameters. Otherwise, we could make it backwards compatible and deprecate the old ones in favor of the new ones and then with a 3.0.0 remove them. |
I think let's do this in two steps:
|
That's the next thing that I'll tackle in the coming days. |
This issue was fixed and released in |
Hello!
My goal is a data structure like this: |
The new API is meant for read only purposes. |
Some thoughts / reasonings are already in this issue - #86.
In our fork we changed the listener so that we'll get the actual parsed object. What we provide into our forked GeoQuery is a parser that can
fun parse(dataSnapshot: DataSnapshot): T
with that we can get the actual parsed data already in the callbacks (onKeyEntered
,onKeyExited
&onKeyMoved
).I think it would make sense to find out of all of the use cases and then come up with a better listener API that is easy to grasp and use.
I'd propose to brainstorm about this and use this issue to track our thoughs and possible API proposals.
The text was updated successfully, but these errors were encountered: