fix(app): stop automatic session neighbor prefetch

This commit is contained in:
LukeParkerDev 2026-08-04 18:16:10 +10:00
parent 7b7335b7e9
commit 1277ceb426

View file

@ -777,18 +777,11 @@ export default function LegacyLayout(props: ParentProps) {
}
createEffect(() => {
if (params.id) return
const sessions = currentSessions()
if (sessions.length === 0) return
const index = params.id ? sessions.findIndex((s) => s.id === params.id) : 0
if (index === -1) return
if (!params.id) {
const first = sessions[index]
if (first) prefetchSession(first, "high")
}
warm(sessions, index)
const first = sessions[0]
if (first) prefetchSession(first, "high")
})
function navigateSessionByOffset(offset: number) {