Currently we are doing a lot of lodash.clone to make sure that chart state is not mutated outside of the Flux store. This is slow and easy to forget to do. Switching to an immutable data library eg immutable-js would solve this and make an "undo" feature really easy to implement.
Currently we are doing a lot of
lodash.clone
to make sure that chart state is not mutated outside of the Flux store. This is slow and easy to forget to do. Switching to an immutable data library eg immutable-js would solve this and make an "undo" feature really easy to implement.