hunkim98 / dotting

Dotting is a pixel art editor component library for react
https://hunkim98.github.io/dotting/
MIT License
46 stars 12 forks source link

Bug: addDataChangeListener constantly firing #101

Closed KR155E closed 10 months ago

KR155E commented 10 months ago

I added a callback to the addDataChangeListener and noticed that it was constantly firing, even when absolutely no user interaction took place.

hunkim98 commented 10 months ago

Could you give me the details on how you implemented addDataChangeListener to your project? More context would greatly help me understand the issue.

KR155E commented 10 months ago

It looks like I made a mistake here. I reimplemented the change listener as demonstrated in DataChangeListener.tsx and this time it worked flawlessly. Thanks again!

hunkim98 commented 10 months ago

Great!