()
| 64 | const getCacheKey = (workflowId?: string | null) => workflowId ?? GLOBAL_WORKFLOW_CACHE_KEY; |
| 65 | |
| 66 | const createEmptyEntry = (): RunCacheEntry => ({ |
| 67 | runs: [], |
| 68 | isLoading: false, |
| 69 | error: null, |
| 70 | lastFetched: null, |
| 71 | }); |
| 72 | |
| 73 | const getEntry = (cache: RunStoreState['cache'], key: string): RunCacheEntry => { |
| 74 | return cache[key] ?? createEmptyEntry(); |