fix: title not updating on first-load

This commit is contained in:
diced
2025-09-09 16:19:54 -07:00
parent 26661f7a83
commit ac41dab2b2

View File

@@ -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]);
}