You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
I need to know which tab is active, so I can do something(fetch data for instance) when tab is in active state
Describe the solution you'd like
If tabs support the controlled state, I guess I can use the selectedId to know which tab is active
Describe alternatives you've considered
provide context store that I can get selectedId and use it to know which tab is active
provide a hook that returns whether tabId is active or not
The text was updated successfully, but these errors were encountered:
Hey, sorry about the late reply. Ideally, it would be nice to create a pattern like Tabs.State or Tabs.useState just like we do for our Modals so you can choose to control the state. I'll need to add this in. I think it would also be nice to add a prop to defer mounting of a tab panel until the tab is clicked too, which may be a nicer solution to fetch data for a particular tab.
Is your feature request related to a problem? Please describe.
I need to know which tab is active, so I can do something(fetch data for instance) when tab is in active state
Describe the solution you'd like
If tabs support the controlled state, I guess I can use the selectedId to know which tab is active
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: