In dev mode, custom app initialize method only works about 1 in 7 times

I’m writing a custom application for Freshsales Suite (used to be freshworks crm, I think?) and have noticed that the method of using 2 useEffect() to initialize the client script only works about 1 time in 7 for me. Generally I have to make tiny modifications to the app.js file while fdk is running (which will cause a reload), and after a little while it will eventually work.

It looks like things generally break at the app.initialized() step.

My assumption is that there’s some kind of race condition at play here.

Has anyone found a better way of handling the initialization or know why app.initialized() would fail so often?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.