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

Function initStateGuard

apps/wallet/src/plugins/pinia.plugin.ts:8–15  ·  view source on GitHub ↗
(_to, _from, next)

Source from the content-addressed store, hash-verified

6const pinia = createPinia();
7
8const initStateGuard: NavigationGuard = async (_to, _from, next) => {
9 const app = useAppStore();
10
11 await app
12 .initialize()
13 .catch(e => logger.error(`Application failed to initialize the state`, { error: e }))
14 .finally(() => next());
15};
16
17export { initStateGuard, pinia };

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.80

Tested by

no test coverage detected