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

Function isSameSettingValue

packages/shared/src/contexts/SettingsContext.tsx:331–332  ·  view source on GitHub ↗
(a: unknown, b: unknown)

Source from the content-addressed store, hash-verified

329// shortcuts), which callers rebuild on every write. Key order can make this
330// report a change that isn't one, which only costs a no-op write.
331const isSameSettingValue = (a: unknown, b: unknown): boolean =>
332 a === b || JSON.stringify(a) === JSON.stringify(b);
333
334// Only what changed goes to the API. Writes used to ship the whole snapshot,
335// so any tab or device holding older settings (a new tab left open, a second

Callers 1

getRemoteSettingsPatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected