MCPcopy Create free account
hub / github.com/microsoft/data-formulator / getSerializableState

Function getSerializableState

src/app/useAutoSave.tsx:32–40  ·  view source on GitHub ↗
(state: DataFormulatorState)

Source from the content-addressed store, hash-verified

30 * Extract the serializable portion of the Redux state (strip sensitive/transient fields).
31 */
32export function getSerializableState(state: DataFormulatorState): Record<string, unknown> {
33 const result: Record<string, unknown> = {};
34 for (const [key, value] of Object.entries(state)) {
35 if (!EXCLUDED_FIELDS.has(key)) {
36 result[key] = value;
37 }
38 }
39 return result;
40}
41
42/**
43 * Custom hook that auto-persists the Redux state to the backend.

Callers 3

handleOpenFunction · 0.90
handleExitFunction · 0.90
useAutoSaveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected