MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / nextFrame

Function nextFrame

core/src/components/router/utils/dom.ts:91–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89const FRAGMENT_SCROLL_DURATION = 300;
90
91const nextFrame = () => new Promise<void>((resolve) => raf(() => resolve()));
92
93/**
94 * Returns true when `el` lives inside an active `.ion-page`. `ion-page-hidden`

Callers 2

findFragmentTargetFunction · 0.85
scrollToFragmentFunction · 0.85

Calls 2

rafFunction · 0.90
resolveFunction · 0.85

Tested by

no test coverage detected