File tree 1 file changed +3
-2
lines changed
packages/runtime-core/src
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import {
26
26
isCompatEnabled ,
27
27
warnDeprecation ,
28
28
} from './compat/compatConfig'
29
+ import { shallowReadonly } from '@vue/reactivity'
29
30
30
31
/**
31
32
* dev only flag to track whether $attrs was used during render.
@@ -48,7 +49,6 @@ export function renderComponentRoot(
48
49
vnode,
49
50
proxy,
50
51
withProxy,
51
- props,
52
52
propsOptions : [ propsOptions ] ,
53
53
slots,
54
54
attrs,
@@ -60,10 +60,11 @@ export function renderComponentRoot(
60
60
ctx,
61
61
inheritAttrs,
62
62
} = instance
63
+ const props = __DEV__ ? shallowReadonly ( instance . props ) : instance . props
64
+ const prev = setCurrentRenderingInstance ( instance )
63
65
64
66
let result
65
67
let fallthroughAttrs
66
- const prev = setCurrentRenderingInstance ( instance )
67
68
if ( __DEV__ ) {
68
69
accessedAttrs = false
69
70
}
You can’t perform that action at this time.
0 commit comments