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

Function saveConfigToBackend

src/pages/SettingsPage/index.tsx:119–125  ·  view source on GitHub ↗
(newConfig: AppConfig)

Source from the content-addressed store, hash-verified

117 };
118
119 const saveConfigToBackend = async (newConfig: AppConfig) => {
120 try {
121 await invoke("set_config", { newConfig });
122 } catch (err) {
123 console.error("Failed to save config:", err);
124 }
125 };
126
127 const pingHosts = async () => {
128 setPinging(true);

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected