Skip to content

Commit

Permalink
refactor(runtime-vapor): simplify props and context handling in setup…
Browse files Browse the repository at this point in the history
…Component
  • Loading branch information
LittleSound committed Nov 30, 2024
1 parent 7097f91 commit dc39fb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/runtime-vapor/src/apiRender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ export function setupComponent(instance: ComponentInternalInstance): void {
VaporErrorCodes.RENDER_FUNCTION,
[
instance.setupState, // _ctx
__DEV__ ? shallowReadonly(props) : props, // $props
shallowReadonly(props), // $props
instance.emit, // $emit
__DEV__ ? getAttrsProxy(instance) : instance.attrs, // $attrs
__DEV__ ? getSlotsProxy(instance) : instance.slots, // $slots
getAttrsProxy(instance), // $attrs
getSlotsProxy(instance), // $slots
],
)
resetTracking()
Expand Down

0 comments on commit dc39fb4

Please sign in to comment.