this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Further make use of Navigation API

history.length is seriously not reliable

+4 -1
+4 -1
src/pages/status.jsx
··· 177 177 const mediaParam = searchParams.get('media'); 178 178 const mediaStatusID = searchParams.get('mediaStatusID'); 179 179 const showMedia = parseInt(mediaParam, 10) > 0; 180 - const firstLoad = useRef(!states.prevLocation && history.length === 1); 180 + const firstLoad = useRef( 181 + !states.prevLocation && 182 + (history.length === 1 || navigation?.entries?.()?.length === 1), 183 + ); 181 184 const [viewMode, setViewMode] = useState( 182 185 searchParams.get('view') || firstLoad.current ? 'full' : null, 183 186 );