From 2e33f868470759a5c5ec5f9926fe55d6b45b4f56 Mon Sep 17 00:00:00 2001 From: Malachi Willey Date: Sat, 3 May 2025 09:28:24 -0700 Subject: [PATCH] fix(issue-stream): Disable realtime feature with new navigation --- static/app/views/issueList/overview.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/app/views/issueList/overview.tsx b/static/app/views/issueList/overview.tsx index 40d62db9e57c47..2ddf8d525764ee 100644 --- a/static/app/views/issueList/overview.tsx +++ b/static/app/views/issueList/overview.tsx @@ -170,9 +170,12 @@ function IssueListOverview({ const navigate = useNavigate(); const {selection} = usePageFilters(); const api = useApi(); + const prefersStackedNav = usePrefersStackedNav(); const realtimeActiveCookie = Cookies.get('realtimeActive'); const [realtimeActive, setRealtimeActive] = useState( - typeof realtimeActiveCookie === 'undefined' ? false : realtimeActiveCookie === 'true' + prefersStackedNav || typeof realtimeActiveCookie === 'undefined' + ? false + : realtimeActiveCookie === 'true' ); const [groupIds, setGroupIds] = useState([]); const [pageLinks, setPageLinks] = useState(''); @@ -188,7 +191,6 @@ function IssueListOverview({ const undoRef = useRef(false); const pollerRef = useRef(undefined); const actionTakenRef = useRef(false); - const prefersStackedNav = usePrefersStackedNav(); const urlParams = useParams<{viewId?: string}>(); const {savedSearch, savedSearchLoading, savedSearches, selectedSearchId} =