Open
Description
What is the current behavior?
I connect to Firestore like this
firestoreConnect([
{
collection: 'emotions',
orderBy: ['updateDate', 'desc'],
},
]),
then I open the screen with collection and collections are ordered by updateDate (desc). Then if I update a record
newRecord.updateDate = new Date()
firestore
.collection('emotions')
.doc(record.id)
.update({ ...newRecord })
all content of the record will be updated, but not the order
If I go back and open screen again, everything is ordered fine again.
But order works fine if I use orderBy with asc instead of desc
What is the expected behavior?
Should update collection order correctly according to it index
Which version of redux-firestore are you using? What about other dependencies?
"redux-firestore": "^0.9.0",
"react-redux-firebase": "^2.4.1",
"react-native": "0.59.10",
Activity