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

Function update

src/pages/SettingsPage/index.tsx:159–164  ·  view source on GitHub ↗
(key: keyof AppConfig, value: any)

Source from the content-addressed store, hash-verified

157 };
158
159 const update = (key: keyof AppConfig, value: any) => {
160 if (!config) return;
161 const newConfig = { ...config, [key]: value };
162 setConfig(newConfig);
163 saveConfigToBackend(newConfig);
164 };
165
166 if (!config) {
167 return (

Callers 7

AppearanceSectionFunction · 0.85
DownloadSectionFunction · 0.85
handleSaveFunction · 0.85
handleClearFunction · 0.85
GeneralSectionFunction · 0.85
ServerNodesSectionFunction · 0.85
ShortcutSectionFunction · 0.85

Calls 1

saveConfigToBackendFunction · 0.85

Tested by

no test coverage detected