Skip to content

Commit

Permalink
Adding getSite to the use effect dependency array
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisAlund committed May 22, 2024
1 parent 092e47b commit ead2d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hosting/src/app/[site]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const RootLayout: React.FC<RootLayoutProps> = ({ children }) => {
document.title = data?.title ?? "Tanam";
});
setLoading(false);
}, []);
}, [getSite]);

return (
<html lang="en">
Expand Down

0 comments on commit ead2d3c

Please sign in to comment.