Skip to content

Commit d796af8

Browse files
committed
fix: use deep clone for fresh signature, fixes #1280
1 parent 57db160 commit d796af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/fresh/babel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default function(babel) {
202202
key: fnHookCalls.map(call => call.name + '{' + call.key + '}').join('\n'),
203203
customHooks: fnHookCalls
204204
.filter(call => !isBuiltinHook(call.name))
205-
.map(call => t.clone(call.callee)),
205+
.map(call => t.cloneDeep(call.callee)),
206206
};
207207
}
208208

0 commit comments

Comments
 (0)