fix: notice query string consumed on unauthenticated routes

This commit is contained in:
Tom Moor
2026-06-07 14:22:11 -04:00
parent 27c633eb8b
commit ac6b680cdb
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -11,6 +11,7 @@ import Route from "~/components/ProfiledRoute";
import WebsocketProvider from "~/components/WebsocketProvider";
import useCurrentTeam from "~/hooks/useCurrentTeam";
import usePolicy from "~/hooks/usePolicy";
import useQueryNotices from "~/hooks/useQueryNotices";
import lazy from "~/utils/lazyWithRetry";
import {
archivePath,
@@ -53,6 +54,7 @@ const RedirectDocument = ({
* the user to be logged in.
*/
function AuthenticatedRoutes() {
useQueryNotices();
const team = useCurrentTeam();
const can = usePolicy(team);
-2
View File
@@ -5,7 +5,6 @@ import DelayedMount from "~/components/DelayedMount";
import FullscreenLoading from "~/components/FullscreenLoading";
import Route from "~/components/ProfiledRoute";
import env from "~/env";
import useQueryNotices from "~/hooks/useQueryNotices";
import lazy from "~/utils/lazyWithRetry";
import { matchDocumentSlug as documentSlug } from "~/utils/routeHelpers";
import useAutoRefresh from "~/hooks/useAutoRefresh";
@@ -18,7 +17,6 @@ const Logout = lazy(() => import("~/scenes/Logout"));
const OAuthAuthorize = lazy(() => import("~/scenes/Login/OAuthAuthorize"));
export default function Routes() {
useQueryNotices();
useAutoRefresh();
return (