rethink it a bit

This commit is contained in:
Alec Armbruster 2023-06-22 11:22:36 -04:00
parent 1eec46be96
commit 63b14accec
No known key found for this signature in database
GPG key ID: 52BC7C84E960FD1B
4 changed files with 2 additions and 12 deletions

View file

@ -15,7 +15,6 @@ import {
updateCommunityBlock,
updatePersonBlock,
} from "@utils/app";
import { restoreScrollPosition, saveScrollPosition } from "@utils/browser";
import {
getPageFromString,
getQueryParams,
@ -229,10 +228,6 @@ export class Community extends Component<
setupTippy();
}
componentWillUnmount() {
saveScrollPosition(this.context);
}
static async fetchInitialData({
client,
path,
@ -609,7 +604,6 @@ export class Community extends Component<
});
}
restoreScrollPosition(this.context);
setupTippy();
}