File tree 3 files changed +6
-11
lines changed
3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -237,14 +237,10 @@ export function trackEffects(
237
237
dep . add ( activeEffect ! )
238
238
activeEffect ! . deps . push ( dep )
239
239
if ( __DEV__ && activeEffect ! . onTrack ) {
240
- activeEffect ! . onTrack (
241
- Object . assign (
242
- {
243
- effect : activeEffect !
244
- } ,
245
- debuggerEventExtraInfo
246
- )
247
- )
240
+ activeEffect ! . onTrack ( {
241
+ effect : activeEffect ! ,
242
+ ...debuggerEventExtraInfo !
243
+ } )
248
244
}
249
245
}
250
246
}
Original file line number Diff line number Diff line change @@ -179,7 +179,6 @@ export function createAppAPI<HostElement>(
179
179
hydrate ?: RootHydrateFunction
180
180
) : CreateAppFunction < HostElement > {
181
181
return function createApp ( rootComponent , rootProps = null ) {
182
-
183
182
if ( ! isFunction ( rootComponent ) ) {
184
183
rootComponent = { ...rootComponent }
185
184
}
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ export function watchPostEffect(
92
92
effect ,
93
93
null ,
94
94
( __DEV__
95
- ? Object . assign ( options || { } , { flush : 'post' } )
95
+ ? { ... options , flush : 'post' }
96
96
: { flush : 'post' } ) as WatchOptionsBase
97
97
)
98
98
}
@@ -105,7 +105,7 @@ export function watchSyncEffect(
105
105
effect ,
106
106
null ,
107
107
( __DEV__
108
- ? Object . assign ( options || { } , { flush : 'sync' } )
108
+ ? { ... options , flush : 'sync' }
109
109
: { flush : 'sync' } ) as WatchOptionsBase
110
110
)
111
111
}
You can’t perform that action at this time.
0 commit comments