mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 01:08:50 +01:00
Fix flash of unscrolled position
Due to statuses being memo-ed, need to speed up the scroll position setup
This commit is contained in:
parent
147a12cbcb
commit
e44ac16396
1 changed files with 1 additions and 1 deletions
|
@ -438,7 +438,7 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(initContext, [id, masto]);
|
useEffect(initContext, [id, masto]);
|
||||||
useEffect(() => {
|
useLayoutEffect(() => {
|
||||||
if (!statuses.length) return;
|
if (!statuses.length) return;
|
||||||
console.debug('STATUSES', statuses);
|
console.debug('STATUSES', statuses);
|
||||||
const scrollPosition = scrollPositions[id];
|
const scrollPosition = scrollPositions[id];
|
||||||
|
|
Loading…
Reference in a new issue