IjzerenHein / firestorter

Use Google Firestore in React with zero effort, using MobX 🤘
http://firestorter.com
MIT License
378 stars 50 forks source link

API suggestion #29

Closed andressh closed 6 years ago

andressh commented 6 years ago

Hello

I am new on these technologies so my question may not make much sense.

It would not be possible to make the source of the collections reactive, like in reactive queries, which would allow an integration with react-router?

IjzerenHein commented 6 years ago

Yes the source of a Collection is also reactive. You can for instance pass-in a function to Collection.path and make that return the path to use. If you access an observable in that function, the function will be automatically re-executed whenever the observable is updated.