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

Function initialize

apps/wallet/src/stores/app.store.ts:59–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 },
58 actions: {
59 async initialize(): Promise<void> {
60 if (this.initialized) {
61 return;
62 }
63
64 const session = useSessionStore();
65 await session.initialize();
66
67 this.initialized = true;
68 },
69 async useLocale(locale: Locale, persist = false): Promise<void> {
70 const isLoadedLocale = i18n.global.availableLocales.includes(locale);
71 if (isLoadedLocale && i18n.global.locale.value === locale) {

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.80

Tested by

no test coverage detected