React createRoot() not working in Modal

Hi,

I have previously posted about an issue with migrating from React 17 to React 18 and using createRoot() instead of the deprecated ReactDOM.render(). This is my previous post: App.initialized() not resolving under certain circumstances

This seems to have been resolved since then since I have now been able to upgrade to React 19 and the widget now properly renders in the ticket_sidebar.

However, with one of our widgets we utilize the showModal method (client.interface.trigger(‘showModal’, …) and it seems like the same problem exists here when trying to render the widget in the modal.

The appclient script gets attached to the DOM and loads, but when calling window.app.initialized() nothing happens, it doesn’t resolve and it doesn’t throw, it just stops executing. I have been able to confirm this by logging the steps to the console and I can see that execution just stops.

Going back to React 18 and using the deprecated ReactDOM.render() resolves the issue, but I would like to upgrade to React 19 and this bug is actively blocking me.

Is this a known issue and is there a fix planned?

Thanks in advance!

Hi @Wilnersson ,

we are working on introducing the upgraded react features in FDK, which will solve most of your cases, We will keep you posted, kindly stay tuned for the updates.

Thanks