(state: DataFormulatorState)
| 30 | * Extract the serializable portion of the Redux state (strip sensitive/transient fields). |
| 31 | */ |
| 32 | export 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. |
no outgoing calls
no test coverage detected