tinymce / tinymce-react

Offical TinyMCE React component
MIT License
937 stars 152 forks source link

TINY-9797: fix bug on remove #459

Closed lorenzo-pomili closed 9 months ago

lorenzo-pomili commented 1 year ago

There is a bug in React that cause an error if a component is unmounted in a specific situation.

I opened an issue in the React repo: https://github.com/facebook/react/issues/26980

This fix seems to solve the issue since it gives the time to React to do its things before the unmount of the component.

Even if it is not the final solution I think we can take this waiting until we have a fix for React

lorenzo-pomili commented 9 months ago

the fix seems not to work always we have to wait for the fix on React