MCPcopy Create free account
hub / github.com/dfinity/orbit / objectDeserialize

Function objectDeserialize

apps/wallet/src/utils/storage.utils.ts:5–5  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

3
4export const objectSerialize = <T>(value: T): string => JSON.stringify(value);
5export const objectDeserialize = <T>(value: string): T => JSON.parse(value);
6
7export function useStorage<T>({
8 key,

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected