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

Use JSON.parse(JSON.stringify(propertyData)) instead of toJS(propertyData) #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

codeBelt
Copy link
Contributor

This resolves this issue: #101

I have tested in my application and I didn't see any issues with this change. I don't know how to test if this change is a improves performance over toJS() but I can see how it would be more performant.


propertiesToWatch[property.key] = toJS(propertyData);
propertiesToWatch[property.key] =
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's about Map/Set. Does it work correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷 I am not sure. I won't be able to test this out for a few weeks. When using Map/Set should you always use serialize and deserialize?

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.

2 participants