MCPcopy Create free account
hub / github.com/ShipSecAI/studio / createEmptyEntry

Function createEmptyEntry

frontend/src/store/runStore.ts:66–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

getEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected