MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / _handleLivesync

Method _handleLivesync

packages/core/ui/frame/frame-common.ts:686–708  ·  view source on GitHub ↗
(context?: ModuleContext)

Source from the content-addressed store, hash-verified

684 }
685
686 public _handleLivesync(context?: ModuleContext): boolean {
687 if (super._handleLivesync(context)) {
688 return true;
689 }
690
691 // Handle markup/script changes in currentPage
692 if (this.currentPage && viewMatchesModuleContext(this.currentPage as any, context, ['markup', 'script'])) {
693 Trace.write(`Change Handled: Replacing page ${context.path}`, Trace.categories.Livesync);
694
695 // Replace current page with a default fade transition
696 this.replacePage({
697 moduleName: context.path,
698 transition: {
699 name: 'fade',
700 duration: 100,
701 },
702 });
703
704 return true;
705 }
706
707 return false;
708 }
709
710 private _onLivesyncWithoutContext(): boolean {
711 // Reset activity/window content when:

Callers 2

_onLivesyncFunction · 0.80
_handleLivesyncFunction · 0.80

Calls 3

replacePageMethod · 0.95
viewMatchesModuleContextFunction · 0.90
writeMethod · 0.65

Tested by

no test coverage detected