performance improvements

This commit is contained in:
Dax Raad
2025-11-05 15:33:23 -05:00
parent 1f44c7f750
commit b7262b8527
5 changed files with 27 additions and 26 deletions

View File

@@ -104,7 +104,15 @@ export function Session() {
const sidebarVisible = createMemo(() => sidebar() === "show" || (sidebar() === "auto" && wide()))
const contentWidth = createMemo(() => dimensions().width - (sidebarVisible() ? 42 : 0) - 4)
createEffect(() => sync.session.sync(route.sessionID))
createEffect(() => {
sync.session.sync(route.sessionID).catch(() => {
toast.show({
message: `Session not found: ${route.sessionID}`,
variant: "error",
})
return navigate({ type: "home" })
})
})
const toast = useToast()