MCPcopy Create free account
hub / github.com/angular/angular / hasValueOrResolved

Function hasValueOrResolved

packages/router/src/router_resource.ts:46–49  ·  view source on GitHub ↗
(res: Resource<unknown>)

Source from the content-addressed store, hash-verified

44 * Checks if a resource has a value or has transitioned to a resolved/non-loading status.
45 */
46export function hasValueOrResolved(res: Resource<unknown>): boolean {
47 const status = res.status();
48 return res.hasValue() || (status !== 'loading' && status !== 'reloading');
49}
50
51/**
52 * @internal

Callers 2

setupBlockingFunction · 0.90

Calls 2

hasValueMethod · 0.65
statusMethod · 0.45

Tested by

no test coverage detected