Skip to content

Commit

Permalink
fix: use deep clone for fresh signature, fixes #1280
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Jul 3, 2019
1 parent 57db160 commit d796af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fresh/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default function(babel) {
key: fnHookCalls.map(call => call.name + '{' + call.key + '}').join('\n'),
customHooks: fnHookCalls
.filter(call => !isBuiltinHook(call.name))
.map(call => t.clone(call.callee)),
.map(call => t.cloneDeep(call.callee)),
};
}

Expand Down

0 comments on commit d796af8

Please sign in to comment.