MCPcopy Index your code
hub / github.com/react/react / encodeStore

Function encodeStore

compiler/apps/playground/lib/stores/store.ts:23–25  ·  view source on GitHub ↗
(store: Store)

Source from the content-addressed store, hash-verified

21 showInternals: boolean;
22}
23export function encodeStore(store: Store): string {
24 return compressToEncodedURIComponent(JSON.stringify(store));
25}
26export function decodeStore(hash: string): any {
27 return JSON.parse(decompressFromEncodedURIComponent(hash));
28}

Callers 2

page.spec.tsFile · 0.90
saveStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected