@@ -414,7 +414,7 @@ function finishComponentSetup(
414
414
export const SetupProxySymbol = Symbol ( )
415
415
416
416
const SetupProxyHandlers : { [ key : string ] : ProxyHandler < any > } = { }
417
- ; [ 'attrs' , 'slots' , 'refs' ] . forEach ( ( type : string ) => {
417
+ ; [ 'attrs' , 'slots' ] . forEach ( ( type : string ) => {
418
418
SetupProxyHandlers [ type ] = {
419
419
get : ( instance , key ) => instance [ type ] [ key ] ,
420
420
has : ( instance , key ) => key === SetupProxySymbol || key in instance [ type ] ,
@@ -429,12 +429,11 @@ const SetupProxyHandlers: { [key: string]: ProxyHandler<any> } = {}
429
429
430
430
function createSetupContext ( instance : ComponentInternalInstance ) : SetupContext {
431
431
const context = {
432
- // attrs, slots & refs are non-reactive, but they need to always expose
432
+ // attrs & slots are non-reactive, but they need to always expose
433
433
// the latest values (instance.xxx may get replaced during updates) so we
434
434
// need to expose them through a proxy
435
435
attrs : new Proxy ( instance , SetupProxyHandlers . attrs ) ,
436
436
slots : new Proxy ( instance , SetupProxyHandlers . slots ) ,
437
- refs : new Proxy ( instance , SetupProxyHandlers . refs ) ,
438
437
emit : instance . emit
439
438
}
440
439
return __DEV__ ? Object . freeze ( context ) : context
0 commit comments