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
This bug means that you cannot use preact-habitat on the same selector more than once
for example if someone is using this library for 2 widgets on their site (usually widgets will use the body selector), only the first one will work
Edit: turns out it doesn't matter anyway because preact renders a tree only once for each root container, i needed to do this:
// preact will render only once for each containerconstcontainer=document.createElement('div')document.body.appendChild(container)render(<App/>, container)
The code rejected rerender from outside by calling
render
preact-habitat/src/lib.js
Lines 123 to 125 in 6969949
The text was updated successfully, but these errors were encountered: