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
Docs/Roadmap updated to reflect recent feature requests + issues.
* Populate section added to recipes
* Profile Params list populate added to roadmap to address #24
* firebase-admin support added to roadmap to address #22
* AuthRequired and Loading decorators added to roadmap
Copy file name to clipboardExpand all lines: docs/api/compose.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Middleware that handles configuration (placed in redux's `compose` call)
16
16
-`config.enableLogging`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Location on firebase to store user profiles. default: `false`
17
17
-`config.profileDecorator`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Location on firebase to store user profiles. default: `false`
18
18
-`config.updateProfileOnLogin`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether or not to update profile when logging in. default: `false`
19
-
-`config.profileParamsToPopulate`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**Whether or not to update profile when logging in. default: `false`
19
+
-`config.profileParamsToPopulate`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**Parameters within profile object to populate
Returns **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)**That accepts a component a returns a wrapped version of component
51
+
Returns **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)**Middleware function
**NOTE:** This functionality is still under construction. Please confirm you have the most recent version.
107
+
108
+
To Populate parameters within profile/user object, include the `profileParamsToPopulate` parameter when [calling `reactReduxFirebase` in your compose function](/api/compose).
109
+
110
+
### Parameter
111
+
112
+
##### Example Config
113
+
Populating username with username from usernames ref.
To Populate parameters within profile/user object, include the `profileParamsToPopulate` parameter when [calling `reactReduxFirebase` in your compose function](/api/compose).
6
+
7
+
#### Examples
8
+
9
+
##### Populate List of Items
10
+
11
+
```javascript
12
+
constconfig= {
13
+
userProfile:'users',
14
+
profileParamsToPopulate: [ 'todos:todos' ] // populate list of todos from todos ref
0 commit comments