]> Untitled Git - lemmy-ui.git/commitdiff
On component unmounting, unset the window iso data, to force a refresh.
authorDessalines <tyhou13@gmx.com>
Thu, 5 Nov 2020 23:41:21 +0000 (17:41 -0600)
committerDessalines <tyhou13@gmx.com>
Thu, 5 Nov 2020 23:41:21 +0000 (17:41 -0600)
src/shared/components/community.tsx
src/shared/components/main.tsx
src/shared/components/post.tsx

index f430fe9586496c6ed58a7e1bf27d185fa6b50db6..86d2c1cc2cfe20eb550863a7344a80de0454b20d 100644 (file)
@@ -138,6 +138,7 @@ export class Community extends Component<any, State> {
   componentWillUnmount() {
     if (isBrowser()) {
       this.subscription.unsubscribe();
+      window.isoData.path = undefined;
     }
   }
 
index 689a4d9f19522725d00430bb1e599e8bf5857012..5f7b7776d9d51e5f31fbbad970962cbeb3e7510a 100644 (file)
@@ -162,6 +162,7 @@ export class Main extends Component<any, MainState> {
   componentWillUnmount() {
     if (isBrowser()) {
       this.subscription.unsubscribe();
+      window.isoData.path = undefined;
     }
   }
 
index c963690254740f9512d9b575beaa75699fc97059..37bae27dd8666831ebc6e700c0d6ed80db5ae315 100644 (file)
@@ -131,6 +131,7 @@ export class Post extends Component<any, PostState> {
 
   componentWillUnmount() {
     this.subscription.unsubscribe();
+    window.isoData.path = undefined;
   }
 
   componentDidMount() {