Browse Source

Revert "chore(custom-views): Switch to useLayoutEffect (#76695)"

This reverts commit 461f6c4b98abafd8af396c013e7357e13f8c3399.

Co-authored-by: MichaelSun48 <55160142+MichaelSun48@users.noreply.github.com>
getsentry-bot 6 months ago
parent
commit
f6dade47ac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/app/views/issueList/customViewsHeader.tsx

+ 2 - 2
static/app/views/issueList/customViewsHeader.tsx

@@ -1,4 +1,4 @@
-import {useContext, useEffect, useLayoutEffect, useMemo, useState} from 'react';
+import {useContext, useEffect, useMemo, useState} from 'react';
 import type {InjectedRouter} from 'react-router';
 import styled from '@emotion/styled';
 import debounce from 'lodash/debounce';
@@ -164,7 +164,7 @@ function CustomViewsIssueListHeaderTabsContent({
   );
 
   // This insane useEffect ensures that the correct tab is selected when the url updates
-  useLayoutEffect(() => {
+  useEffect(() => {
     // If no query, sort, or viewId is present, set the first tab as the selected tab, update query accordingly
     if (!query && !sort && !viewId) {
       navigate({