Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit dc39fb4

Browse files
committed
refactor(runtime-vapor): simplify props and context handling in setupComponent
1 parent 7097f91 commit dc39fb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/runtime-vapor/src/apiRender.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export function setupComponent(instance: ComponentInternalInstance): void {
7777
VaporErrorCodes.RENDER_FUNCTION,
7878
[
7979
instance.setupState, // _ctx
80-
__DEV__ ? shallowReadonly(props) : props, // $props
80+
shallowReadonly(props), // $props
8181
instance.emit, // $emit
82-
__DEV__ ? getAttrsProxy(instance) : instance.attrs, // $attrs
83-
__DEV__ ? getSlotsProxy(instance) : instance.slots, // $slots
82+
getAttrsProxy(instance), // $attrs
83+
getSlotsProxy(instance), // $slots
8484
],
8585
)
8686
resetTracking()

0 commit comments

Comments
 (0)