Skip to content

Commit

Permalink
Merge pull request #87 from apostolos/patch-1
Browse files Browse the repository at this point in the history
Update freezing defaults in flow defs
  • Loading branch information
mweststrate authored Feb 1, 2018
2 parents 69aedd8 + e4537dc commit dc5d942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/immer.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare export default function produce<S>(
* Automatically freezes any state trees generated by immer.
* This protects against accidental modifications of the state tree outside of an immer function.
* This comes with a performance impact, so it is recommended to disable this option in production.
* It is by default enabled.
* By default it is turned on during local development, and turned off in production.
*/
declare export function setAutoFreeze(autoFreeze: boolean): void

Expand Down

0 comments on commit dc5d942

Please sign in to comment.