mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-13 09:38:53 +08:00
[firestore] Apply ID cursor when no orders
This commit is contained in:
@@ -79,12 +79,14 @@ export default class FirestoreQuery {
|
||||
values.push(value);
|
||||
}
|
||||
|
||||
modifiers._orders.push({
|
||||
fieldPath: '__name__',
|
||||
direction: 'ASCENDING',
|
||||
});
|
||||
if (currentOrders.length === 0) {
|
||||
modifiers._orders.push({
|
||||
fieldPath: '__name__',
|
||||
direction: 'ASCENDING',
|
||||
});
|
||||
|
||||
values.push(documentSnapshot.id);
|
||||
values.push(documentSnapshot.id);
|
||||
}
|
||||
|
||||
return modifiers.setFieldsCursor(cursor, values);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user