fix: use preload event in link handler

This commit is contained in:
2025-05-28 21:23:44 +01:00
parent e400debde2
commit 4e76aee818
2 changed files with 6 additions and 5 deletions

View File

@ -14,7 +14,7 @@ import { ShortPage } from "./short";
export function LinkHandler() {
const location = useLocation();
const evPreload = getEventFromLocationState(location.state);
const link = useStreamLink();
const link = useStreamLink(evPreload);
const layoutContext = useLayout();
if (!link) return;