UNPKG

mobx-persist-store

Version:
6 lines (5 loc) 277 B
import { PersistStoreMap } from './PersistStoreMap'; export const getPersistedStore = async (target) => { var _a, _b; return (_b = (_a = PersistStoreMap.get(target)) === null || _a === void 0 ? void 0 : _a.getPersistedStore()) !== null && _b !== void 0 ? _b : null; };