MCPcopy Create free account
hub / github.com/UI5/webcomponents / shouldUpdate

Function shouldUpdate

packages/base/src/features/F6Navigation.ts:17–22  ·  view source on GitHub ↗
(runtimeIndex: number | undefined)

Source from the content-addressed store, hash-verified

15const currentRuntimeINdex = getCurrentRuntimeIndex();
16
17const shouldUpdate = (runtimeIndex: number | undefined) => {
18 if (runtimeIndex === undefined) {
19 return true;
20 }
21 return compareRuntimes(currentRuntimeINdex, runtimeIndex) === 1; // 1 means the current is newer, 0 means the same, -1 means the resource's runtime is newer
22};
23
24class F6Navigation {
25 keydownHandler: (event: KeyboardEvent) => void;

Callers 1

initMethod · 0.70

Calls 1

compareRuntimesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…