Skip to content

Commit 03d279b

Browse files
malwilleyandrewshie-sentry
authored andcommitted
fix(issue-stream): Disable realtime feature with new navigation (#90874)
We removed the realtime button with the new navigation, but were still setting it to true if the cookie was present. This ensures that it is fully disabled.
1 parent 12eb534 commit 03d279b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

static/app/views/issueList/overview.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,12 @@ function IssueListOverview({
170170
const navigate = useNavigate();
171171
const {selection} = usePageFilters();
172172
const api = useApi();
173+
const prefersStackedNav = usePrefersStackedNav();
173174
const realtimeActiveCookie = Cookies.get('realtimeActive');
174175
const [realtimeActive, setRealtimeActive] = useState(
175-
typeof realtimeActiveCookie === 'undefined' ? false : realtimeActiveCookie === 'true'
176+
prefersStackedNav || typeof realtimeActiveCookie === 'undefined'
177+
? false
178+
: realtimeActiveCookie === 'true'
176179
);
177180
const [groupIds, setGroupIds] = useState<string[]>([]);
178181
const [pageLinks, setPageLinks] = useState('');
@@ -188,7 +191,6 @@ function IssueListOverview({
188191
const undoRef = useRef(false);
189192
const pollerRef = useRef<CursorPoller | undefined>(undefined);
190193
const actionTakenRef = useRef(false);
191-
const prefersStackedNav = usePrefersStackedNav();
192194
const urlParams = useParams<{viewId?: string}>();
193195

194196
const {savedSearch, savedSearchLoading, savedSearches, selectedSearchId} =

0 commit comments

Comments
 (0)