MCPcopy Create free account
hub / github.com/dailydotdev/apps / updateRemoteSettingsFn

Function updateRemoteSettingsFn

packages/shared/src/contexts/SettingsContext.tsx:219–228  ·  view source on GitHub ↗
(
    newSettings: RemoteSettings,
    bootUserId?: string,
  )

Source from the content-addressed store, hash-verified

217 }, []);
218
219 const updateRemoteSettingsFn = async (
220 newSettings: RemoteSettings,
221 bootUserId?: string,
222 ): Promise<void> => {
223 if (userId || bootUserId) {
224 await updateRemoteSettings({
225 ...newSettings,
226 });
227 }
228 };
229
230 const setSettings = async (newSettings: RemoteSettings): Promise<void> => {
231 updateSettings({ ...settings, ...newSettings });

Callers 3

setSettingsFunction · 0.85
syncSettingsFunction · 0.85
SettingsContextProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected