Skip to content

Commit

Permalink
auto-unregister zombie service workers
Browse files Browse the repository at this point in the history
  • Loading branch information
zburke committed Nov 10, 2023
1 parent fc25984 commit 6399c0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import configureLogger from './configureLogger';
import configureStore from './configureStore';
import gatherActions from './gatherActions';
import { destroyStore } from './mainActions';
import { unregisterServiceWorker } from './serviceWorkerRegistration';


import Root from './components/Root';

Expand All @@ -30,6 +32,10 @@ export default class StripesCore extends Component {
this.epics = configureEpics(connectErrorEpic);
this.store = configureStore(initialState, this.logger, this.epics);
this.actionNames = gatherActions();

// unregister any zombie service workers left over from RTR work
// prior to disabling RTR in PR #1371
unregisterServiceWorker();
}

componentWillUnmount() {
Expand Down

0 comments on commit 6399c0a

Please sign in to comment.