REFACTOR: Implement full page reloads for state-critical navigation

This commit is contained in:
Chris-1010
2025-02-22 13:00:20 +00:00
parent aa1b85513f
commit 12d9f3660a
9 changed files with 35 additions and 42 deletions

View File

@@ -15,11 +15,11 @@ const HomePage: React.FC<HomePageProps> = ({ variant = "default" }) => {
const navigate = useNavigate();
const handleStreamClick = (streamerName: string) => {
navigate(`/${streamerName}`);
window.location.href = `/${streamerName}`;
};
const handleCategoryClick = (categoryName: string) => {
navigate(`category/${categoryName}`);
navigate(`/category/${categoryName}`);
};
return (