-
Notifications
You must be signed in to change notification settings - Fork 537
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
tree: Allow MapNodes from Records #22042
Conversation
🦋 Changeset detectedLatest commit: 18e089f The changes in this PR will be included in the next version bump. This PR includes changesets to release 157 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
.changeset/green-spies-arrive.md
Outdated
``` | ||
|
||
This new feature makes it possible for schema, | ||
which do not require unhydrated nodes to differentiate ambiguous unions, |
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.
Detection of which schema have this ambiguity issue, and some related details and API which build on the Json support added in this PR are included in #22022 as drafts.
⯅ @fluid-example/bundle-size-tests: +379 Bytes
Baseline commit: cb1d7c7 |
Co-authored-by: Noah Encke <[email protected]>
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.
Changeset looks good, just left a rewording suggestion.
.changeset/green-spies-arrive.md
Outdated
const fromRecord = new Schema({ x: 5 }); | ||
``` | ||
|
||
This new feature makes it possible for schema, |
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.
Rewording suggestion. I think I got the meaning right.
This new feature makes it possible for schema, | |
This new feature makes it possible for schemas to construct a tree entirely from JSON compatible objects using their constructors, as long as they do not require unhydrated nodes to differentiate ambiguous unions. |
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.
If you want to suggest changing multiple lines, you should select multiple lines when making the comment. Applying that suggestion would just replace line 18 with that, which I'm pretty sure is not what you intended. You can also use the preview feature to ensure the diff is replacing the right things.
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.
applied slightly reworked version of change separate from this thread. Good rephrasing!
Co-authored-by: Tyler Butler <[email protected]>
Description
Allow
Record
typed object to be used to construct MapNodes.More details in changeset.
This is one change of several working toward improved JSON compatibility.
Reviewer Guidance
The review process is outlined on this wiki page.