tab conpment Too slow to switch
See original GitHub issueI have a problem in switching <Tab> component. It’s too slow to switch animation, there are more delays than 1000ms. My Component structure looks like this:
<div>
<Tabs
value={value}
onChange={this.handleChange}
>
<Tab label="Item One" />
<Tab label="Item Two" />
</Tabs>
{value === 0 && <TabContainer>Item One</TabContainer>}
</div>
The <TabContainer> component is a complex component, where there are many data needs to be displayed. I want the < Tab > component to complete the switching animation immediately, instead of waiting to happen with the < TabContainer > component.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top Results From Across the Web
tab conpment Too slow to switch · Issue #13319 · mui/material-ui
I have a problem in switching component. It's too slow to switch animation, there are more delays than 1000ms. My Component structure looks ......
Read more >material-ui tab conpment Too slow to switch - Stack Overflow
I have a problem in switching component. It's too slow to switch animation, there are more delays than 1000ms. My Component structure looks ......
Read more >ALT+Tab too slow because it is waiting for display before ...
When switching frequently between two applications, I don't need to see the display associated with ALT+Tab. Since I know I want to switch...
Read more >Tabs part of UI is very slow : r/vivaldibrowser - Reddit
So currently situation is, switching tabs is tolerable but I shouldn't touch the UI again for 3-10 seconds depending until the 30% or...
Read more >Switching tabs incredibly slow - Dash Python
I have an app with several menus on the top and two tabs on the bottom. One tab shows a datatable and one...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m facing a similar issue when switching between tabs. On change it triggers a redux action which changes a variable that is fed to a connected container component which renders the tabs. There’s a lot going on in the connected component and I think that’s what’s causing the lag. Remove the action that fires onChange and the speed of tab switching is fine.
My case is too complex to easily reproduce. But I wanted to just note that I have a similar issue when dealing with large data sets that have to go through a rerender process on tab change. Ill try to memoize what I can and see if that helps
Still having the same issue. Please what can be done?
The tab switch animation is frozen while components render…