/** * We need to serialize values to a string in case there are Proxy values, as is the case with SolidJS etc. */ export const fastClone = (obj: T): T => JSON.parse(JSON.stringify(obj))