cloneDeep avoidance

performance
TypeScript
Author

Carlos

Published

January 30, 2025

Logging an idea for future use: we need to avoid cloneDeeping large structures. It has caused bugs in the past and is the source of performance issues.

One way to address this is to create a proxy object that forbids mutation, remove the cloneDeep call, and run our test suite. Rinse, repeat.