question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tab conpment Too slow to switch

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
orpheuscommented, Apr 27, 2020

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

2reactions
tobychidi-zzcommented, Dec 2, 2021

Still having the same issue. Please what can be done?

The tab switch animation is frozen while components render…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found