File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const render = (
49
49
return { props : options }
50
50
}
51
51
52
- const component = new ComponentConstructor ( {
52
+ let component = new ComponentConstructor ( {
53
53
target,
54
54
...checkProps ( options )
55
55
} )
@@ -67,15 +67,15 @@ const render = (
67
67
if ( componentCache . has ( component ) ) component . $destroy ( )
68
68
69
69
// eslint-disable-next-line no-new
70
- const newComponent = new ComponentConstructor ( {
70
+ component = new ComponentConstructor ( {
71
71
target,
72
72
...checkProps ( options )
73
73
} )
74
74
75
- containerCache . set ( container , { target, newComponent } )
76
- componentCache . add ( newComponent )
75
+ containerCache . set ( container , { target, component } )
76
+ componentCache . add ( component )
77
77
78
- newComponent . $$ . on_destroy . push ( ( ) => { componentCache . delete ( newComponent ) } )
78
+ component . $$ . on_destroy . push ( ( ) => { componentCache . delete ( component ) } )
79
79
} ,
80
80
unmount : ( ) => {
81
81
if ( componentCache . has ( component ) ) component . $destroy ( )
You can’t perform that action at this time.
0 commit comments