from pRegroup2020 Multiple Movement Issues - Lasso selection of 200 stickies and moving them around takes time for the screen to refresh - Itā€™s because the code for moving one sticky is being used all over the place, and itā€™s causing 200 status updates to run. - Undo to go back one by one as you are moving individual stickies. - Undoable from the ground up to make the state Undoable, but it was not designed properly - Instead of ā€œeach state update should be subject to Undoā€, it should be ā€œeach user operation should be subject to Undoā€. - I thought ā€œUndo is hardā€ with the image of old GUI implementation, but not so much. - If you follow the React Way of ā€œno destructive updates to state,ā€ you can easily get back to a ā€œstate at a point in timeā€ by simply keeping a reference to the state at that point in time.


This page is auto-translated from /nishio/複ꕰē§»å‹•ć®å•é”Œ using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iā€™m very happy to spread my thought to non-Japanese readers.