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.