We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04c5fb3 commit 46867f8Copy full SHA for 46867f8
src/core/immerClass.ts
@@ -88,6 +88,8 @@ export class Immer implements ProducersFns {
88
// Only plain objects, arrays, and "immerable classes" are drafted.
89
if (isDraftable(base)) {
90
const scope = enterScope(this)
91
+ //when base is a draft,can't freeze
92
+ scope.canAutoFreeze_ = !isDraft(base)
93
const proxy = createProxy(this, base, undefined)
94
let hasError = true
95
try {
0 commit comments