Skip to content
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

Warn in toJS docs about deep cloning partial observables #3239

Merged
merged 3 commits into from
Jan 4, 2022

Conversation

bernardobelchior
Copy link
Contributor

Warn in toJS docs about deep cloning partial observables, to avoid issues with some properties being deep clones while others are not.

I have faced this issue while upgrading to MobX 6 and I believe it will save other people some headaches if it is clear that toJS has this limitation.

Relates to #2912

Warn in `toJS` docs about deep cloning partial observables, to avoid issues with some properties being deep clones while others are not. 

Relates to mobxjs#2912
@changeset-bot
Copy link

changeset-bot bot commented Dec 31, 2021

🦋 Changeset detected

Latest commit: c7fd2a5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mobx Patch

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

@kubk
Copy link
Collaborator

kubk commented Jan 4, 2022

@bernardobelchior Thank you for the clarification. Would you like to add this information to Mobx docs too? https://mobx.js.org/api.html#tojs

@bernardobelchior
Copy link
Contributor Author

@kubk I wouldn't mind. Although we would have to merge the docs and this comment, since they overlap a bit.
If you wouldn't mind, I'd send a PR shortly after this one with that

@urugator urugator closed this Jan 4, 2022
@urugator urugator reopened this Jan 4, 2022
@kubk
Copy link
Collaborator

kubk commented Jan 4, 2022

@bernardobelchior OK, feel free to create a separate PR to Mobx docs. Thank you.

@urugator Is there a way to restart pipelines?

@urugator
Copy link
Collaborator

urugator commented Jan 4, 2022

@kubk Yes by closing and reopening the PR :D

@urugator urugator merged commit bf5da6b into mobxjs:main Jan 4, 2022
@github-actions github-actions bot mentioned this pull request Jan 4, 2022
@bernardobelchior
Copy link
Contributor Author

@kubk As promised, here it is: #3249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants