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
* fix(populate): undefined populate child responds unmodified as expected - prescottprue#310
* fix(auth): `UNLOAD_PROFILE` action type no longer dispatched (did not fix issue) - prescottprue#301
* feat(populate): support for populating ordered data with multiple populates where one populate child missing
* feat(query): parsed query param added to allow disabling of automatic parsing - prescottprue#302
* feat(config): `preserveOnLogin` config option added to allow preserving of pieces of state affected by `LOGIN` action (called by `login` action creator)
* feat(tests): test added to check profile state consistency on `LOGIN` dispatch - prescottprue#301
* feat(tests): tests added for `getVal` helper
* feat(tests): Unit tests added for populating ordered data
Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Data located at path within Immutable Object
Can be used to keep internal parsing from happening. Useful when attempting to search a number string using `equalTo`
@@ -363,6 +366,27 @@ firebaseConnect([
363
366
])
364
367
```
365
368
369
+
## parsed {#parsed}
370
+
371
+
Internally parse following query params. Useful when attempting to parse
372
+
373
+
**NOTE**: `orderByChild`, `orderByPriority`, and `orderByValue` will cause this to be enabled by default. Parsing will remain enabled for the rest of the query params until `notParsed` is called.
374
+
375
+
#### Examples
376
+
1. Order by child parameter equal to a number string. Equivalent of searching for `'123'` (where as not using `notParsed` would search for children equal to `123`)
377
+
```js
378
+
firebaseConnect([
379
+
{
380
+
path:'/todos',
381
+
queryParams: [
382
+
'parsed', // causes automatic parsing
383
+
'equalTo=123'// 123 is treated as a number instead of a string
384
+
'orderByChild=createdBy',
385
+
]
386
+
}
387
+
])
388
+
```
389
+
366
390
## storeAs {#populate}
367
391
368
392
By default the results of queries are stored in redux under the path of the query. If you would like to change where the query results are stored in redux, use `storeAs`:
0 commit comments