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(firebaseConnect): allow reuse of existing subscriptions when paths change - @Lecss
* fix(watch): issue with multiple watchers on same path - @Tapped
* feat(storage): add size and contentType to file uploads - @urbantumbleweed
* feat(storage): errors in `uploadFile` now call `console.error`
* feat(docs): `logErrors` config parameter added to docs
* feat(core): husky added as a dev dep so that lint is run on push (`prepush` already in `package.json`)
* fix(storage): `uploadFile` can accept both `options.progress` and options name together - #414
* feat(tests): tests added to confirm name option works with other options - #414
* feat(query): `onProfileWriteError` config option added to allow for hooking into error case of profile writes
* feat(storage): `deleteFile` metadata removal logic simplified
* feat(storage): `upload` metadata set logic simplified
* feat(tests): Unit tests for `firestoreConnect` improved to more deeply test listener updates on prop changes
* feat(tests): Unit tests added to test logic for `presence` and `sessions` config options
* feat(core): `npm publish` now takes place on Travis through `deploy` config (any new version merged to master will be published by default)
Copy file name to clipboardExpand all lines: docs/api/constants.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,13 @@ Default configuration options
87
87
-`sessions`**([String][4]\|[Function][5])**`sessions` Location on Firebase where user
88
88
sessions are stored (only if presense is set). Often set to `'sessions'` or
89
89
`'userSessions'`. If a function is passed, the arguments are: `(currentUser, firebase)`.
90
-
-`enableLogging`**[Boolean][6]**`false` Whether or not firebase
91
-
database logging is enabled.
92
-
-`preserveOnLogout`**([Array][7]\|[Object][8])**`null` Data parameters to
90
+
-`enableLogging`**[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**`false` Whether or not firebase
91
+
database logging is enabled. Providing `true` turns on error logging
92
+
(enabled by itself through `logErrors`).
93
+
-`logErrors`**[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**`true` Whether or not to log internal
94
+
Firebase errors (i.e. error querying or writing data) to the javascript
95
+
console .
96
+
-`preserveOnLogout`**([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\|[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))**`null` Data parameters to
93
97
preserve when logging out. If Array is passed, each item represents keys
94
98
within state.firebase.data preserve. If an object is passed, Keys associate
95
99
with parts of state to preserve, and the values are Arrays contain keys
@@ -103,7 +107,9 @@ Default configuration options
103
107
whatever is returned from the function is set to that slice of state (`auth`).
104
108
-`updateProfileOnLogin`**[Boolean][6]**`true` Whether or not to update
105
109
user profile when logging in.
106
-
-`resetBeforeLogin`**[Boolean][6]**`true` Whether or not to reset auth
file metadata to Firestore instead of Real Time Database.
112
+
-`resetBeforeLogin`**[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**`true` Whether or not to reset auth
file metadata to Firestore instead of Real Time Database.
50
+
-`config.enableRedirectHandling`**[Boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Whether or not to enable
0 commit comments