mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 06:36:17 +00:00
On component unmounting, unset the window iso data, to force a refresh.
This commit is contained in:
parent
2a82bead57
commit
5bae840804
|
@ -138,6 +138,7 @@ export class Community extends Component<any, State> {
|
|||
componentWillUnmount() {
|
||||
if (isBrowser()) {
|
||||
this.subscription.unsubscribe();
|
||||
window.isoData.path = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -162,6 +162,7 @@ export class Main extends Component<any, MainState> {
|
|||
componentWillUnmount() {
|
||||
if (isBrowser()) {
|
||||
this.subscription.unsubscribe();
|
||||
window.isoData.path = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -131,6 +131,7 @@ export class Post extends Component<any, PostState> {
|
|||
|
||||
componentWillUnmount() {
|
||||
this.subscription.unsubscribe();
|
||||
window.isoData.path = undefined;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
|
Loading…
Reference in a new issue