MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / writeStored

Function writeStored

apps/kimi-web/src/composables/useResizable.ts:48–54  ·  view source on GitHub ↗
(key: string, value: number)

Source from the content-addressed store, hash-verified

46}
47
48function writeStored(key: string, value: number): void {
49 try {
50 safeSetString(key, String(value));
51 } catch {
52 // localStorage unavailable (e.g. private mode) — width still works in-memory
53 }
54}
55
56export function useResizable(options: UseResizableOptions): UseResizable {
57 const { storageKey, defaultWidth, min, max, reverse = false } = options;

Callers 1

setWidthFunction · 0.85

Calls 1

safeSetStringFunction · 0.90

Tested by

no test coverage detected