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
Unfortunately no, the library is designed to listen for changes in the database as well as your query and fire off new results as individual items as they come in. (Just how geofire does) In effect the query would never have a resolution (which a Promise would need) as it is always listening and updating.
You could instead use the ready listener to kill the subscription to your query when it triggers for now. However v3 will be more like the regular Firestore library where there will be promises and listeners.
@uslperera version 3.0.0 has a get() function which returns a promise. While v3 is massively different, the spittin-hot-geofirestore repo shows an example of how to use it promises with the library!
According to this example code, you can perform the geo location based search.
Is it possible to use promises to get the same result. If so could you please give an example?
The text was updated successfully, but these errors were encountered: