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

@@ -48,7 +48,7 @@ const ResultsPage: React.FC = ({}) => {
<li
key={index}
className="border p-2 rounded my-2 cursor-pointer"
onClick={() => navigate(`/user/${user.username}`)}
onClick={() => window.location.href = `/user/${user.username}`}
>
{user.is_live ? "🔴" : ""} {user.username}
</li>
@@ -63,7 +63,7 @@ const ResultsPage: React.FC = ({}) => {
<li
key={index}
className="border p-2 rounded my-2 cursor-pointer"
onClick={() => navigate(`/${stream.username}`)}
onClick={() => window.location.href = `/${stream.username}`}
>
{stream.title} - {stream.username} - {stream.num_viewers} viewers
</li>