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
* feat(query): composite `storeAs` - @demoran23
* feat(build): publishing to npm now happens using node 10
* fix(reducers): correctly update state for docs with keys that contain a dot when using storeAs - @compojoom
* feat(query): consolidate oneListenerPerPath and allowMultipleListeners logic - @alexmattson
* feat(query): initial support for populate - #48, [RRF 362](prescottprue/react-redux-firebase#362)
* fix(deps): remove `@types/lodash` from dev dependencies
* fix(deps): update to babel7
// here query1Options as in { collection: 'cities' } for example
256
256
```
257
257
@@ -305,6 +305,21 @@ Multiple `where` queries are as simple as passing multiple argument arrays (each
305
305
},
306
306
```
307
307
308
+
Firestore doesn't alow you to create `or` style queries. Instead, you should pass in multiple queries and compose your data.
309
+
310
+
```javascript
311
+
['sally', 'john', 'peter'].map(friendId=> ({
312
+
collection:'users',
313
+
where: [
314
+
['id', '==', friendId],
315
+
['isOnline', '==', true]
316
+
]
317
+
storeAs:'onlineFriends'
318
+
}));
319
+
```
320
+
321
+
Since the results must be composed, a query like this is unable to be properly ordered. The results should be pulled from `data`.
322
+
308
323
*Can only be used with collections*
309
324
310
325
##### orderBy
@@ -432,16 +447,16 @@ Storing data under a different path within redux is as easy as passing the `stor
432
447
Other Firebase statics (such as [FieldValue](https://firebase.google.com/docs/reference/js/firebase.firestore.FieldValue)) are available through the firestore instance:
Optional configuration options for redux-firestore, provided to reduxFirestore enhancer as optional second argument. Combine any of them together in an object.
467
558
@@ -480,11 +571,6 @@ Default: `false`
480
571
481
572
Whether or not to allow multiple listeners to be attached for the same query. If a function is passed the arguments it receives are `listenerToAttach`, `currentListeners`, and the function should return a boolean.
482
573
483
-
#### oneListenerPerPath
484
-
Default: `false`
485
-
486
-
If set to true redux-firestore will attach a listener on the same path just once & will count how many the listener was set. When you try to unset the listener, it won't unset until you have less than 1 listeners on this path
0 commit comments