Skip to content

Commit 1c54cae

Browse files
committed
refactor(runtime-vapor): remove default value
1 parent 639c847 commit 1c54cae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/runtime-vapor/__tests__/dom/prop.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { getCurrentScope } from '@vue/reactivity'
1818

1919
let removeComponentInstance = NOOP
2020
beforeEach(() => {
21-
const instance = createComponentInstance((() => {}) as any, {})
21+
const instance = createComponentInstance((() => {}) as any, {}, null, null)
2222
const reset = setCurrentInstance(instance)
2323
const prev = getCurrentScope()
2424
instance.scope.on()

packages/runtime-vapor/src/component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ let uid = 0
259259
export function createComponentInstance(
260260
component: ObjectComponent | FunctionalComponent,
261261
rawProps: RawProps | null,
262-
slots: Slots | null = null,
263-
dynamicSlots: DynamicSlots | null = null,
262+
slots: Slots | null,
263+
dynamicSlots: DynamicSlots | null,
264264
// application root node only
265-
appContext: AppContext | null = null,
265+
appContext?: AppContext,
266266
): ComponentInternalInstance {
267267
const parent = getCurrentInstance()
268268
const _appContext =

0 commit comments

Comments
 (0)