How to use the store2.clear function in store2

To help you get started, we’ve selected a few store2 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 synapsestudios / oidc-platform / test-client / src / App.js View on Github external
componentWillMount() {
    if (location.pathname === '/logout') {
      localstorage.clear();
      history.replace('/');
    } else {
      this.checkForCode();
    }
  }

store2

Better localStorage

MIT
Latest version published 9 months ago

Package Health Score

77 / 100
Full package analysis