-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Throw when writeFragment cannot identify object #6859
Conversation
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.
After giving it some more thought, I think this change could end up removing code, even though it's adding functionality. Ideas below!
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.
LGTM with one last suggestion!
9db2730
to
ea5a356
Compare
Since this PR introduces a new exception throwing behavior, I think it needs to be considered a minor breaking change, so I rebased/retargeted it to |
As noted in #6706, writeFragment can fail to identify the object and return
undefined
. This can be a pain to debug so we now warn when that's the case.Checklist: