[TabList] Conditional rendering of Tab fails #26166
Labels
bug 馃悰
Something doesn't work
component: tabs
This is the name of the generic UI component, not the React module!
Current Behavior 馃槸
As pointed on Issue 8093, when we have a conditional rendering of a Tab, it throws an error.
Expected Behavior 馃
The expected behavior is not to consider a null as a valid component. This issue was resolved by PR 8107, but for Tabs component.
Steps to Reproduce 馃暪
Just use a condition to render a Tab inside a TabList
Live example on CodeSandbox
Steps:
Context 馃敠
I was trying to render a Tab depending on a user state.
Your Environment 馃寧
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: