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

Function objectSerialize

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

Source from the content-addressed store, hash-verified

2import { logger } from '~/core/logger.core';
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>({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected