Unable to load full page app

Hi Team,

I am trying to create a react app with sidebar and full page components. but seems like at load time of full page app the event handler is not working as expected. appLoad function is never getting triggered

Below is the code:

useLayoutEffect(()=>{
const fn =async()=>{
let client = await app?.initialized();
client.events.on(“app.activated”, () => appLoad(client));
}
fn();
}

Hi @Ashwin_Vasudevan ,

Can you try like this:

app.initialized().then((client) => {
renderApp(client);
});

Kindly inform me about whether it functions as intended or encounters issues.

1 Like