-
-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(profile): providerData is written as empty array in Firestore #699
Comments
You can provide That said, provider data should only be included if it isn't an empty array, so I'll switch the ticket to focus on that. |
* feat(storage): pass file metadata through `uploadFile` to `storage.put` calls - #720 * fix(auth): pass `updateProfile` options to action - #701 - @cruzdanilo * fix(profile): only include `providerData` if it is not an empty array in Firestore - #699 * feat(webpack): add `lodash-webpack-plugin` to shrink bundle size
Fix released in v2.3.0 |
@prescottprue I setup my react-redux-firebase like this. providerData is stored in firestore as a empty array even when user.providerData is not empty. (Is this because firestore does not support directly nested arrays? firebase/firebase-js-sdk#193 (comment) ) |
@tomoyuki28jp Thanks for posting, the example should be updated - you may also want to stick to assigning roles in a cloud function since that makes it easier when it comes times to create security rules |
Updated the docs to also include an example of doing this with a cloud function |
* feat(auth): remove `signIn` option from createUser (new user is automatically signed in through Firebase SDK) - #513 * feat(core): new pattern for getting extended firebase instance in thunks (added back `getFirebase` to api) - #635 * fix(HOCs): switch to `UNSAFE_componentWillReceiveProps` in class based HOCs to prevent warnings with 16.9.0 - #755 * fix(HOCs): switch `withFirebase` and `withFirestore` back to pre-hooks compatible logic * fix(core): replace lodash methods such as `isArray`, `isBoolean`, `isString`, `size`, `compact` and `isFunction` with native methods in a number of places * chore(deps): update lodash to 4.17.15 * chore(docs): add docs for how to reference data from state for reselect selectors - #614 * chore(docs): update client side role assign example in roles recipes - #699 * chore(docs): add example for assigning role in cloud function - #699
It 's updating the profile in firestore with provider data as empty array and if we by default set profile how do we know that it's first login
Which versions of dependencies, and which browser and OS are affected by this issue? Did this work in previous versions or setups?
react-redux-firebase : 3.0.0 - 11
The text was updated successfully, but these errors were encountered: