MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / onNavigatingTo

Method onNavigatingTo

packages/core/ui/page/page-common.ts:112–127  ·  view source on GitHub ↗
(context: any, isBackNavigation: boolean, bindingContext?: any)

Source from the content-addressed store, hash-verified

110
111 @profile
112 public onNavigatingTo(context: any, isBackNavigation: boolean, bindingContext?: any) {
113 this._navigationContext = context;
114
115 if (isBackNavigation && this._styleScope) {
116 this._styleScope.ensureSelectors();
117 if (!this._cssState.isSelectorsLatestVersionApplied()) {
118 this._onCssStateChange();
119 }
120 }
121
122 //https://github.com/NativeScript/NativeScript/issues/731
123 if (!isBackNavigation && bindingContext !== undefined && bindingContext !== null) {
124 this.bindingContext = bindingContext;
125 }
126 this.notify(this.createNavigatedData(PageBase.navigatingToEvent, isBackNavigation));
127 }
128
129 @profile
130 public onNavigatedTo(isBackNavigation: boolean): void {

Callers 1

_onNavigatingToMethod · 0.80

Calls 4

createNavigatedDataMethod · 0.95
ensureSelectorsMethod · 0.80
notifyMethod · 0.65

Tested by

no test coverage detected