title management

This commit is contained in:
2026-02-14 21:31:09 -08:00
parent 684d441763
commit 3076f4f1a4
2 changed files with 28 additions and 0 deletions

View File

@@ -53,6 +53,16 @@ export default function SearchRoutePage() {
return () => window.removeEventListener("popstate", onPopState);
}, []);
useEffect(() => {
document.title = routeQuery ? `${routeQuery} — Sybil` : "Sybil";
}, [routeQuery]);
useEffect(() => {
return () => {
document.title = "Sybil";
};
}, []);
useEffect(() => {
return () => {
streamAbortRef.current?.abort();