Skip to content

Commit ac41dab

Browse files
committed
fix: title not updating on first-load
1 parent 26661f7 commit ac41dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/hooks/useTitle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export function useTitle(title?: string) {
1010
useEffect(() => {
1111
if (!data || error || isLoading) return;
1212
document.title = title ? `${data.website.title}${title}` : data.website.title || 'Zipline';
13-
}, [title, location]);
13+
}, [title, location, data, isLoading]);
1414
}

0 commit comments

Comments
 (0)