MCPcopy Create free account
hub / github.com/buka-studio/echotab / initStore

Function initStore

apps/extension/src/store/settingStore.ts:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39);
40
41export const initStore = async () => {
42 const stored = await persistence.load();
43 if (stored) {
44 useSettingStore.setState({ settings: stored.settings, activePanel: stored.activePanel });
45 }
46 useSettingStore.setState({ initialized: true });
47};
48
49useSettingStore.subscribe((store) => {
50 if (store.initialized) {

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected