diff --git a/utils/clone_state.ts b/utils/clone_state.ts index 81260943..b7df9f25 100644 --- a/utils/clone_state.ts +++ b/utils/clone_state.ts @@ -9,6 +9,9 @@ export function cloneState>(state: S): S { const clonedValue = structuredClone(value); clone[key as keyof S] = clonedValue; } catch { + console.warn( + `Cannot clone value for: ${key}. Modify contextState to change this behavior.`, + ); // we just no-op values that cannot be cloned } }