File tree 2 files changed +11
-2
lines changed
packages/runtime-core/src
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -440,6 +440,15 @@ export interface ComponentInternalInstance {
440
440
* @internal
441
441
*/
442
442
[ LifecycleHooks . SERVER_PREFETCH ] : LifecycleHook < ( ) => Promise < unknown > >
443
+
444
+ /**
445
+ * For caching bound $forceUpdate on public proxy access
446
+ */
447
+ f ?: ( ) => void
448
+ /**
449
+ * For caching bound $nextTick on public proxy access
450
+ */
451
+ n ?: ( ) => Promise < void >
443
452
}
444
453
445
454
const emptyAppContext = createAppContext ( )
Original file line number Diff line number Diff line change @@ -252,8 +252,8 @@ export const publicPropertiesMap: PublicPropertiesMap =
252
252
$root : i => getPublicInstance ( i . root ) ,
253
253
$emit : i => i . emit ,
254
254
$options : i => ( __FEATURE_OPTIONS_API__ ? resolveMergedOptions ( i ) : i . type ) ,
255
- $forceUpdate : i => ( ) => queueJob ( i . update ) ,
256
- $nextTick : i => nextTick . bind ( i . proxy ! ) ,
255
+ $forceUpdate : i => i . f || ( i . f = ( ) => queueJob ( i . update ) ) ,
256
+ $nextTick : i => i . n || ( i . n = nextTick . bind ( i . proxy ! ) ) ,
257
257
$watch : i => ( __FEATURE_OPTIONS_API__ ? instanceWatch . bind ( i ) : NOOP )
258
258
} as PublicPropertiesMap )
259
259
You can’t perform that action at this time.
0 commit comments