Skip to content
Myr

Merge pull request #87 from apostolos/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Update freezing defaults in flow defs

authored by Michel Weststrate · committed by GitHub · parents 69aedd8, e4537dc · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/immer.js.flow+1 added-1 removed
32 unmodified lines
33/**34 * Automatically freezes any state trees generated by immer.35 * This protects against accidental modifications of the state tree outside of an immer function.36 * This comes with a performance impact, so it is recommended to disable this option in production.37 * It is by default enabled.37 * By default it is turned on during local development, and turned off in production.38 */39declare export function setAutoFreeze(autoFreeze: boolean): void4041/**
4 unmodified lines