Skip to content

applyPatch

applyPatch(into, patch): Record<string, unknown>

Apply a patch to state: objects merge key by key, null removes, anything else (lists too) replaces. Returns a new object; into is not changed.

Record<string, unknown>

Record<string, unknown>

Record<string, unknown>