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