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
|
@ -438,7 +438,7 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
|||
};
|
||||
|
||||
useEffect(initContext, [id, masto]);
|
||||
useEffect(() => {
|
||||
useLayoutEffect(() => {
|
||||
if (!statuses.length) return;
|
||||
console.debug('STATUSES', statuses);
|
||||
const scrollPosition = scrollPositions[id];
|
||||
|
|
Loading…
Reference in a new issue