-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
Adding firebase parameter to profileFactory in createUserProfile #772
Comments
Interesting idea! Feel free to submit a PR. Have you been using the If not, making it the third argument should prevent breaking changes for most, so we could add it to a new minor version of the Thanks for reaching out! |
Yes, I am using v3. Ok great thanks, will submit a PR 👍 |
* feat(profileFactory): adding `firebase` parameter to `profileFactory` callback - #772 - @dannyvaughton * feat(core): add `eslint-plugin-json` and update jsdoc comments * fix(core): use `import *` in place of index file for actions * fix(core): use `@see` in jsdoc to provide docs links * feat(ci): add node 12 to travis build versions * feat(core): remove consumer exports from top level API (available from `Context.Consumer`) * feat(docs): more v3 API change updates to docs * fix(examples): update firestore example with v3 api * chore(deps): update [documentationjs](https://documentation.js.org/) version to 12.1.2 * chore(deps): update webpack to 4.41.0
Released in v3.0.0-beta is is now part of |
I would like to discuss/request a small addition to the
profileFactory
callback in thecreateUserProfile
user function.Currently
createUserProfile
callsconfig.profileFactory
with two parameters:userData
&profile
. I would like to discuss adding third:firebase
.The reason is because in profileFactory, I would like to run a few database checks before writing data to the user's profile. I am struggling with using firebase within this function because firebase & firestore have not yet been instantiated.
Currently, I am placing this logic within my Login & Sign Up components, but I feel it would be better placed in profileFactory.
What are your thoughts & would you like me to submit a PR?
The text was updated successfully, but these errors were encountered: