-
-
Notifications
You must be signed in to change notification settings - Fork 553
v2.0.0-beta.17 #334
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
Merged
Merged
v2.0.0-beta.17 #334
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9913aa6
fix(populate): undefined populate child responds unmodified as expect…
prescottprue 255417e
fix(profile): isLoaded set to false on LOGIN to prevent inconsistent …
prescottprue 8d4012a
parsed query param added to allow disabling of automatic parsing - #302
prescottprue 633f602
Merge branch 'v2.0.0' into v2.0.0-beta.17
prescottprue 70ab223
Add parsed queryParam to docs.
prescottprue 63ca9d5
Added a warning if attempting to populate profile when useFirestoreFo…
prescottprue 2dff7e8
Remove yarn.lock, cleanup package.json.
prescottprue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
| export const exampleData = { | ||
| data: { | ||
| some: 'data', | ||
| projects: { | ||
| CDF: { | ||
| owner: 'ABC', | ||
| category: 'cat1', | ||
| notes: { | ||
| 123: true | ||
| }, | ||
| collaborators: { | ||
| ABC: true, | ||
| abc: true | ||
| } | ||
| }, | ||
| GHI: { | ||
| owner: 'ABC', | ||
| category: 'cat2' | ||
| }, | ||
| OKF: { | ||
| owner: 'asdfasdf', | ||
| notes: { | ||
| 123: true | ||
| }, | ||
| collaborators: { | ||
| ABC: true, | ||
| abc: true | ||
| } | ||
| }, | ||
| QRS: { | ||
| owner: 'ABC', | ||
| category: 'cat1', | ||
| nested: { | ||
| owner: 'ABC' | ||
| }, | ||
| notes: { | ||
| 123: true | ||
| }, | ||
| collaborators: { | ||
| ABC: true, | ||
| abc: true | ||
| } | ||
| }, | ||
| TUV: { | ||
| owner: 'ABC', | ||
| notes: { | ||
| 123: true | ||
| }, | ||
| collaborators: { | ||
| ABC: true, | ||
| abc: true | ||
| } | ||
| } | ||
| }, | ||
| users: { | ||
| ABC: { | ||
| displayName: 'scott' | ||
| } | ||
| }, | ||
| categories: { | ||
| cat1: { | ||
| displayName: 'magic' | ||
| }, | ||
| cat2: { | ||
| displayName: 'animals' | ||
| } | ||
| }, | ||
| notes: { | ||
| 123: { | ||
| text: 'Some Text' | ||
| } | ||
| }, | ||
| missing: { | ||
| data: null | ||
| }, | ||
| roles: { | ||
| tester: { | ||
| somePermission: true | ||
| } | ||
| } | ||
| }, | ||
| ordered: { | ||
| projects: [ | ||
| { | ||
| value: { | ||
| owner: 'ABC', | ||
| notes: { | ||
| 123: true | ||
| }, | ||
| collaborators: { | ||
| ABC: true, | ||
| abc: true | ||
| } | ||
| }, | ||
| key: 'JKF' | ||
| } | ||
| ] | ||
| }, | ||
| timestamp: { 'some/path': { test: 'key' } }, | ||
| snapshot: { some: 'snapshot' }, | ||
| profile: { | ||
| role: 'tester', | ||
| notes: { | ||
| 123: true | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before we were returning
{ ...auth, isEmpty: false, isLoaded: true }and now we are returning{ ...state, ...auth, isEmpty: false, isLoaded: true }. Any reason we added...state?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great question! The goal was to preserve anything in state that was there, as well as spread the new parameters onto it. I think that this doesn't really offer that much advantage, and could be unclear to some, so I am going to change it back.
I think it still makes sense to pass
{ ...state, ...auth }topickthough since some want to be able to preserveisLoadedstate and potentially other things that were already in state. What are your thoughts?