feat(core): allow passing explicit refs via props
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { VNode, VNodeChild, isVNode } from './vnode'
|
||||
import { ReactiveEffect, reactive, readonly } from '@vue/reactivity'
|
||||
import { ReactiveEffect, reactive, readonlyProps } from '@vue/reactivity'
|
||||
import {
|
||||
PublicInstanceProxyHandlers,
|
||||
ComponentPublicInstance
|
||||
@@ -269,7 +269,7 @@ export function setupStatefulComponent(
|
||||
// 2. create props proxy
|
||||
// the propsProxy is a reactive AND readonly proxy to the actual props.
|
||||
// it will be updated in resolveProps() on updates before render
|
||||
const propsProxy = (instance.propsProxy = readonly(instance.props))
|
||||
const propsProxy = (instance.propsProxy = readonlyProps(instance.props))
|
||||
// 3. call setup()
|
||||
const { setup } = Component
|
||||
if (setup) {
|
||||
|
||||
Reference in New Issue
Block a user