title management
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user