* @internal
*/
[LifecycleHooks.SERVER_PREFETCH]: LifecycleHook<() => Promise<unknown>>
+
+ /**
+ * For caching bound $forceUpdate on public proxy access
+ */
+ f?: () => void
+ /**
+ * For caching bound $nextTick on public proxy access
+ */
+ n?: () => Promise<void>
}
const emptyAppContext = createAppContext()
$root: i => getPublicInstance(i.root),
$emit: i => i.emit,
$options: i => (__FEATURE_OPTIONS_API__ ? resolveMergedOptions(i) : i.type),
- $forceUpdate: i => () => queueJob(i.update),
- $nextTick: i => nextTick.bind(i.proxy!),
+ $forceUpdate: i => i.f || (i.f = () => queueJob(i.update)),
+ $nextTick: i => i.n || (i.n = nextTick.bind(i.proxy!)),
$watch: i => (__FEATURE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP)
} as PublicPropertiesMap)