Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions utils/clone_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export function cloneState<S extends Record<string, any>>(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
}
}
Expand Down