mirror of
https://github.com/diced/zipline.git
synced 2025-12-05 20:40:12 -08:00
fix: title not updating on first-load
This commit is contained in:
@@ -10,5 +10,5 @@ export function useTitle(title?: string) {
|
||||
useEffect(() => {
|
||||
if (!data || error || isLoading) return;
|
||||
document.title = title ? `${data.website.title} – ${title}` : data.website.title || 'Zipline';
|
||||
}, [title, location]);
|
||||
}, [title, location, data, isLoading]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user