kopia lustrzana https://github.com/cheeaun/phanpy
Fix flash of unscrolled position
Due to statuses being memo-ed, need to speed up the scroll position setuppull/392/head
rodzic
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];
|
||||
|
|
Ładowanie…
Reference in New Issue