MCPcopy
hub / github.com/shiyi-0x7f/o-lib / loadConfig

Function loadConfig

src/pages/SettingsPage/index.tsx:47–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 };
46
47 const loadConfig = async () => {
48 try {
49 const cfg: AppConfig = await invoke("get_config");
50 setConfig(cfg);
51 setSubUrl(cfg.subscription_url || "");
52 } catch (err) {
53 console.error("Failed to load config:", err);
54 }
55 };
56
57 const loadHostsInfo = async () => {
58 try {

Callers 6

ShortcutSectionFunction · 0.85
SettingsPageFunction · 0.85
handleUpdateSubscriptionFunction · 0.85
handleImportHostsFunction · 0.85
handleResetHostsFunction · 0.85
handleAutoSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected