IjzerenHein / firestorter

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

React-native not quering collections #70

Closed rborn closed 5 years ago

rborn commented 5 years ago

Hi, thanks a lot for this package, it's amazing :)

I'm trying to use the same logic in a ReactJS an ReactNative code but while in web it works fine in RN it seems that is not executing the queries.

This code will have docs empty.

        this.categoriesCollection = new Collection('categories', { query: ref => ref.orderBy('order', 'asc') });

I run the "normal" react-native-firebase code and all works as it should.

Any idea? Thank you.

rborn commented 5 years ago

mmm, maybe is because you don't ever import observer from mobx-react/native ?

rborn commented 5 years ago

ignore me, I'm dumb 🤦‍♂️

IjzerenHein commented 5 years ago

No worries :)