We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26661f7 commit ac41dabCopy full SHA for ac41dab
src/lib/hooks/useTitle.ts
@@ -10,5 +10,5 @@ export function useTitle(title?: string) {
10
useEffect(() => {
11
if (!data || error || isLoading) return;
12
document.title = title ? `${data.website.title} – ${title}` : data.website.title || 'Zipline';
13
- }, [title, location]);
+ }, [title, location, data, isLoading]);
14
}
0 commit comments