From e4537dcd15473572152771dcde382d97ce029002 Mon Sep 17 00:00:00 2001 From: Apostolos Tsakpinis Date: Thu, 1 Feb 2018 19:49:57 +0200 Subject: [PATCH] Update freezing defaults in flow defs --- src/immer.js.flow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/immer.js.flow b/src/immer.js.flow index b042f097..9cf0d093 100644 --- a/src/immer.js.flow +++ b/src/immer.js.flow @@ -34,7 +34,7 @@ declare export default function produce( * 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