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 was playing around with nanocomponent and component-box as possible target solution for jsx compilation and stumbled upon an issue.
Sometimes we may expect updaing a component state by calling render, even when the component is not in the DOM, eg.
letmenu=newMenu()// these render calls do not incur update callmenu.render({content: 'Home'})menu.render({content: ['A','B']})document.body.appendChild(menu.render())
Does it make any sense to invoke update even for detached components? We can imagine some components not dealing with DOM at all.
The text was updated successfully, but these errors were encountered:
I was playing around with
nanocomponent
andcomponent-box
as possible target solution for jsx compilation and stumbled upon an issue.Sometimes we may expect updaing a component state by calling
render
, even when the component is not in the DOM, eg.Does it make any sense to invoke
update
even for detached components? We can imagine some components not dealing with DOM at all.The text was updated successfully, but these errors were encountered: