webcomponents / webcomponents/polyfills
[ShadyCSS] How do we clean up?
Open
Package: shadycss
Severity: Medium
Type: Feature
wontfix
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 168
- PR merge metrics
- No merged PRs in 30d
Description
Right now I am doing
```js
componentWillUnmount() {
document.querySelector(`style[scope=${this.styleScopeName}]`).remove()
}
```
inside my class when it unmounts (a React component).
Is this enough? Or will ShadyCSS still contain a reference to the style sheet and if so how do I clean it?
Contributor guide
Assessment
This issue has not been assessed yet.