2 ms·
In your example you're just changing one element and leaving the rest the same - a pretty trivial transformation. If you're applying map() to a list then all of
by skybrian 11y ago
In your example you're just changing one element and leaving the rest the same - a pretty trivial transformation. If you're applying map() to a list then all of the elements change.
If you have a pipeline then it's going to result in everything downstream re-running, unless you compare the output of the map() transformation to the previous value, like some build systems do.
- spion 11y agoOr alternatively, run all the major data transformations necessary to get from data to VDOM from the render function, passing as much as possible of the original data to the bottom-most components.