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
* Node v8 support (`package.lock.json` added, and `8` added to node versions in travis config)
* `credential` support for login method - #186
* createUserProfile called with Facebook authentication - #187
* Switched back to using constructor to set context vars (attempt to fix undefined vars in component mount)
* Merged changes that set `displayName` and `wrappedComponent`
* Docs sections `redux-observable` and `epics` combined
* Docs updated with changes to compose function (no longer supports passing fbConfig)
* Docs added about `presence` and `sessions` config options
-`config`**[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Containing react-redux-firebase specific config
15
-
such as userProfile
16
-
-`config.userProfile`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Location on firebase to store user
17
-
profiles
18
-
-`config.enableLogging`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether or not to enable Firebase
19
-
database logging
8
+
-`firebaseInstance`**[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Initiated firebase instance (can also
9
+
be library following Firebase JS API such as `react-native-firebase`)
10
+
-`config`**[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Containing react-redux-firebase specific configuration
11
+
-`config.userProfile`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Location on firebase to store user profiles
12
+
-`config.enableLogging`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether or not to enable Firebase database logging.
13
+
**Note**: Only works if instance has enableLogging function.
14
+
-`config.profileFactory`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Factory for modifying how user profile is saved.
15
+
-`config.presence`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Location on Firebase to store currently
16
+
online users list. Often set to `'presence'` or `'onlineUsers'`.
17
+
-`config.sessions`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Location on Firebase where user
18
+
sessions are stored (only if presense is set). Often set to `'sessions'` or `'onlineUsers'`.
20
19
-`config.updateProfileOnLogin`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether or not to update
21
20
profile when logging in. (default: `false`)
22
21
-`config.enableRedirectHandling`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether or not to enable
@@ -32,15 +31,13 @@ Middleware that handles configuration (placed in redux's
32
31
result is returned. Argument Pattern: `(authData, firebase, dispatch)`
33
32
-`config.customAuthParameters`**[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Object for setting which
34
33
customAuthParameters are passed to external auth providers.
35
-
-`config.profileFactory`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Factory for modifying how user
36
-
profile is saved.
37
34
-`config.uploadFileDataFactory`**[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Factory for modifying
38
35
how file meta data is written during file uploads
39
36
-`config.profileParamsToPopulate`**([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\|[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String))** Parameters within
40
-
profile object to populate
41
-
-`config.autoPopulateProfile`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether or not to
42
-
automatically populate profile with data loaded through
43
-
profileParamsToPopulate config. (default: `true`)
37
+
profile object to populate. As of `v2.0.0` data is only loaded for population, not actually automatically populated
38
+
(allows access to both unpopulated and populated profile data).
39
+
-`config.autoPopulateProfile`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)****NOTE**: Not yet enabled for v2.0.0. Whether or not to
40
+
automatically populate profile with data loaded through profileParamsToPopulate config. (default: `true`)
44
41
-`config.setProfilePopulateResults`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether or not to
45
42
call SET actions for data that results from populating profile to redux under
46
43
the data path. For example: role paramter on profile populated from 'roles'
// Follow Setup example with the following config:
83
-
constconfig= {
84
-
customAuthParameters: {
85
-
google: {
86
-
// prompts user to select account on every google login
87
-
prompt:'select_account'
88
-
}
89
-
}
90
-
}
91
-
```
92
-
93
76
Returns **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** That accepts a component and returns a Component which
94
77
wraps the provided component (higher order component).
Copy file name to clipboardExpand all lines: docs/api/constants.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
@@ -64,8 +64,8 @@ Default configuration options
64
64
-`presence`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**`null` Location on Firebase where of currently
65
65
online users is stored. Often set to `'presence'` or `'onlineUsers'`.
66
66
-`sessions`**[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)**`sessions` Location on Firebase where user
67
-
sessions are stored (only if presense is set). Often set to `'presence'` or
68
-
`'onlineUsers'`.
67
+
sessions are stored (only if presense is set). Often set to `'sessions'` or
68
+
`'userSessions'`.
69
69
-`enableLogging`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**`false` Whether or not firebase
70
70
database logging is enabled.
71
71
-`updateProfileOnLogin`**[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**`true` Whether or not to update
`redux-observable` can easily be used with `redux-form` to write changes to Firebase as a user types into an input, [see the `redux-form` recipes section for more details](/docs/recipes/redux-form.md)
21
+
`redux-observable` can easily be used with `redux-form` to write changes to Firebase as a user types into an input, [see the `redux-form` recipes section for more details](/docs/recipes/redux-form.md)/
22
+
23
+
In the Angular world this has been called "3-Way Data Binding".
24
+
25
+
### Debounced Notifications
26
+
Debounce writing to a ref on Firebase such as `/notifications` (useful so that tons of similar notifications aren't created).
Copy file name to clipboardExpand all lines: docs/v2-migration-guide.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
* allows any version of Firebase to be used
12
12
* allows [`react-native-firebase`](https://github.com/invertase/react-native-firebase) to be passed (for using native modules instead of JS within `react-native`)
13
13
* firebase is no longer a dependency (shrinks umd bundle size)
14
+
*`profileParamsToPopulate` does not automatically populate profile, populated version can be loaded with `populate` (there will most likely be an option to enable auto populating before `v2.0.0` is out of pre-release)
0 commit comments