How to use the theming.themeListener.unsubscribe function in theming

To help you get started, we’ve selected a few theming examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / theming / theming-tests.tsx View on Github external
componentWillUnmount() {
      const { subscription } = this;
      if (subscription != null) {
        themeListener.unsubscribe(this.context, subscription);
      }
    }
    render() {
github cssinjs / styled-jss / src / styled.js View on Github external
componentWillUnmount() {
      availableDynamicTagNames.push(this.dynamicTagName)

      if (this.subscriptionId) {
        themeListener.unsubscribe(this.context, this.subscriptionId)
      }
    }