from pRegroup2020 Improved Tool selection - Iā€™m doing the ā€œsetState after reading Tool#activate in Paper.jsā€ and itā€™s a bug where I forgot to setState. - To begin with, ā€œTool#activate is called by setStateā†’useEffectā€ is correct. - I donā€™t remember where it was written, but the idea is ā€œsingle source of truthā€. - React should have been the single source and the Paper.js side should have been subordinate and updated when editing there.


This page is auto-translated from /nishio/TooléøęŠžć‚’ę”¹å–„ 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.