#create and dispose solid

2 messages · Page 1 of 1 (latest)

outer sparrow
#

Hey, I have multiple places/elements in my app where I want solid to be a root that will manage children of this dom element. But these places (react components are hosting them) might be removed by the user.

What I do in each of these hosts is:
render(MySolidComponent, htmlHost)

  1. how do I dispose/disconnect solid from managing this element
  2. is it a problem if I have multiple places that do this?

Sorry but I couldn't find any info in documentation. Thanks in advance,

vital narwhal
#

render returns an unmount method that you can call in unsubscribe.