On component unmounting, unset the window iso data, to force a refresh.

This commit is contained in:
Dessalines 2020-11-05 17:41:21 -06:00
parent 2a82bead57
commit 5bae840804
3 changed files with 3 additions and 0 deletions

View file

@ -138,6 +138,7 @@ export class Community extends Component<any, State> {
componentWillUnmount() {
if (isBrowser()) {
this.subscription.unsubscribe();
window.isoData.path = undefined;
}
}

View file

@ -162,6 +162,7 @@ export class Main extends Component<any, MainState> {
componentWillUnmount() {
if (isBrowser()) {
this.subscription.unsubscribe();
window.isoData.path = undefined;
}
}

View file

@ -131,6 +131,7 @@ export class Post extends Component<any, PostState> {
componentWillUnmount() {
this.subscription.unsubscribe();
window.isoData.path = undefined;
}
componentDidMount() {