MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / lock

Method lock

core/src/components/router/router.tsx:309–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307 }
308
309 private async lock() {
310 const p = this.waitPromise;
311 let resolve!: () => void;
312 this.waitPromise = new Promise((r) => (resolve = r));
313
314 if (p !== undefined) {
315 await p;
316 }
317 return resolve;
318 }
319
320 /**
321 * Executes the beforeLeave hook of the source route and the beforeEnter hook of the target route if they exist.

Callers 15

safeWriteNavStateMethod · 0.95
presentMethod · 0.80
dismissMethod · 0.80
presentMethod · 0.80
dismissMethod · 0.80
commitMethod · 0.80
presentMethod · 0.80
dismissMethod · 0.80
presentMethod · 0.80
dismissMethod · 0.80
presentMethod · 0.80
dismissMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected