MCPcopy Create free account
hub / github.com/dailydotdev/apps / cachePatchyConfig

Function cachePatchyConfig

packages/shared/src/features/patchy/patchyConfig.ts:272–274  ·  view source on GitHub ↗
(response: PatchyConfigResponse)

Source from the content-addressed store, hash-verified

270const PATCHY_CONFIG_STORAGE_KEY = 'patchy_config';
271
272export const cachePatchyConfig = (response: PatchyConfigResponse): void => {
273 storageWrapper.setItem(PATCHY_CONFIG_STORAGE_KEY, JSON.stringify(response));
274};
275
276let loadedConfig: PatchyConfig | null = null;
277

Callers 1

usePatchyConfigSyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected