atmosphere explorer pds.ls
tool typescript atproto
434
fork

Configure Feed

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

fix transition between tabs

Juliet fbae2bcf db7ee22b

+5 -1
+5 -1
src/layout.tsx
··· 28 28 const location = useLocation(); 29 29 const navigate = useNavigate(); 30 30 const isRouting = useIsRouting(); 31 + let stablePath = location.pathname; 32 + createEffect(() => { 33 + if (!isRouting()) stablePath = location.pathname; 34 + }); 31 35 32 36 if (location.search.includes("hrt=true")) localStorage.setItem("hrt", "true"); 33 37 else if (location.search.includes("hrt=false")) localStorage.setItem("hrt", "false"); ··· 174 178 }} 175 179 > 176 180 <Suspense fallback={<Spinner />}> 177 - <Show when={!isRouting()} fallback={<Spinner />}> 181 + <Show when={!isRouting() || location.pathname === stablePath} fallback={<Spinner />}> 178 182 {props.children} 179 183 </Show> 180 184 </Suspense>