Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX an issue when re-rendering lit-html elements after rendering a no…
…n-lit-html element It seems the mountNode becomes stateful after a render has occurred in lit-html. Since storybook is changing the dom beyond lit-html, it gets "confused" and throws an error because it's unable to remove some nodes. I guess it's trying to do reconciliation or cleanup, and it's missing state or it's state is inconsistent with the actual dom. By adding a extra inner root node that gets reset when switching stories we make lit-html mount correctly
- Loading branch information
661481a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployment failed with the following error: