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

Function _popFromFrameStack

packages/core/ui/frame/frame-stack.ts:31–43  ·  view source on GitHub ↗
(frame: FrameBase)

Source from the content-addressed store, hash-verified

29}
30
31export function _popFromFrameStack(frame: FrameBase): void {
32 if (!frame._isInFrameStack) {
33 return;
34 }
35
36 const top = topmost();
37 if (top !== frame) {
38 throw new Error('Cannot pop a Frame which is not at the top of the navigation stack.');
39 }
40
41 frameStack.pop();
42 frame._isInFrameStack = false;
43}
44
45export function _removeFromFrameStack(frame: FrameBase): void {
46 if (!frame._isInFrameStack) {

Callers 1

_popFromFrameStackMethod · 0.90

Calls 2

popMethod · 0.80
topmostFunction · 0.70

Tested by

no test coverage detected