You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the widget inside a modal and several other components in a react project. So when the render function executes it could not find the widgets since it's still not added to the dom.
Can I call render function again? If so how is it? Is it the right method?
The text was updated successfully, but these errors were encountered:
importhabitatfrom"preact-habitat";importRootfrom"./Root";window.render=()=>{habitat(Root).render({
...
});};// in development, set up HMR:if(module.hot){require("preact/devtools");// enables React DevTools, be careful on IEmodule.hot.accept("./Root",()=>requestAnimationFrame(init));// eslint-disable-line}window.render();
So later in my React components, I can use window.render()
I'm using the widget inside a modal and several other components in a react project. So when the render function executes it could not find the widgets since it's still not added to the dom.
Can I call render function again? If so how is it? Is it the right method?
The text was updated successfully, but these errors were encountered: