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

Method setCurrent

packages/core/ui/frame/index.ios.ts:101–109  ·  view source on GitHub ↗
(entry: BackstackEntry, navigationType: NavigationType)

Source from the content-addressed store, hash-verified

99 }
100
101 public setCurrent(entry: BackstackEntry, navigationType: NavigationType): void {
102 const current = this._currentEntry;
103 const currentEntryChanged = current !== entry;
104 if (entry?.resolvedPage && currentEntryChanged) {
105 this._updateBackstack(entry, navigationType);
106
107 super.setCurrent(entry, navigationType);
108 }
109 }
110
111 // !!! THIS PROFILE DECORATOR CREATES A CIRCULAR DEPENDENCY
112 // !!! BECAUSE THE PARAMETER TYPE IS EVALUATED WITH TYPEOF

Callers 3

viewDidAppearMethod · 0.45
onResumeMethod · 0.45

Calls 1

_updateBackstackMethod · 0.80

Tested by

no test coverage detected