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

feature: Always freeze by default #702

Merged
merged 8 commits into from
Nov 17, 2020
Merged

feature: Always freeze by default #702

merged 8 commits into from
Nov 17, 2020

Conversation

mweststrate
Copy link
Collaborator

@mweststrate mweststrate commented Nov 17, 2020

BREAKING CHANGE: always freeze by default, even in production mode. Use setAutoFreeze(process.env.NODE_ENV !== 'production') for the old behavior. See #687 (comment) for the rationale. Fixes #649, #681, #687

BREAKING CHANGE: Immer will now always freeze data, even in production build. Use `setAutoFreeze(NODE_ENV !== 'production')` for the old behavior
BREAKING CHANGE: Immer will now always freeze data, even in production build. Use `setAutoFreeze(NODE_ENV !== 'production')` for the old behavior
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 17, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1ba9c4e:

Sandbox Source
Immer sandbox Configuration
Immer sandbox Issue #649
Immer sandbox Issue #649

@mweststrate mweststrate merged commit a406c8f into master Nov 17, 2020
@aleclarson
Copy link
Member

🎉 This PR is included in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

This was referenced Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance of mutating large collections: arrays vs objects
2 participants