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.

Support unmountOnExit in Tab component

See original GitHub issue
  • components: tab
  • reactstrap version ^4.8.0
  • react version ^15.6.1
  • bootstrap version 4.0.0-alpha.6

Tab pane should support unmountOnExit

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

2reactions
tahafarooquicommented, Apr 5, 2020

I solved by using this way. This will load only current tab and unmount others.

{this.state.activeTab==1 && <UploadFiles/>}
{this.state.activeTab==2 && <Cars/>}

0reactions
tahafarooquicommented, Apr 5, 2020

Is it fixed ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tabs only mount Tab content on the first time it becomes active
For a component that should be made completely static after its first render, this is really all you need: class YourComponent extends React....
Read more >
Tab components - React-Bootstrap
Tabs is a higher-level component for quickly creating a Nav matched with a set of ... (sans focus management), but we don't make...
Read more >
Tabs - React-Bootstrap
Togglable tabs Tabs, Tab, TabContainer, TabContent, TabPane. Add quick, dynamic tab functionality to transition through panes of local content. #Uncontrolled.
Read more >
React-Bootstrap Tabs Component - GeeksforGeeks
With the help of tabs, the user can switch between components present in given different ... unmountOnExit: It is used to unmount the...
Read more >
Tabs API - Material UI - MUI
Name Type Default action ref allowScrollButtonsMobile bool false aria‑label string
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