Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faaf142

Browse files
committed
refactor: reduce component mergeHook arg count
Because f43ce3a removed the two extra args from init hook
1 parent 8227fb3 commit faaf142

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/core/vdom/create-component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ function installComponentHooks (data: VNodeData) {
236236
}
237237

238238
function mergeHook (f1, f2) {
239-
const merged = (a, b, c, d) => {
240-
f1(a, b, c, d)
241-
f2(a, b, c, d)
239+
const merged = (a, b) => {
240+
f1(a, b)
241+
f2(a, b)
242242
}
243243
merged._merged = true
244244
return merged

0 commit comments

Comments
 (0)