polyfills icon indicating copy to clipboard operation
polyfills copied to clipboard

[ShadyCSS] How do we clean up?

Open trusktr opened this issue 7 years ago • 3 comments

Right now I am doing

  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?

trusktr avatar Sep 18 '18 18:09 trusktr