-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make tab content stateful ? #93
Comments
That's a good point. But yes, I think that's a possible situation when creating tab UI. Maybe it's possible to add a The possible api: <Tabs>
<TabList>
<Tab>Tab1</Tab>
<Tab cached>Tab2</Tab> // this tab wont be unmount
</TabList>
<PanelList>
<Panel>
Accusamus enim nisi itaque voluptas nesciunt repudiandae velit. <br/>
Ad molestiae magni quidem saepe et quia voluptatibus minima. <br/>
Omnis autem distinctio tempore. Qui omnis eum illum adipisci ab.
</Panel>
<Panel>
Officiis commodi facilis optio eum aliquam.<br/>
Tempore libero sit est architecto voluptate. Harum dolor modi deleniti animi qui similique facilis. Sit delectus voluptatem praesentium recusandae neque quo quod.
</Panel>
</PanelList>
</Tabs> What do you think? |
Yeah, I think it's a great solution when the effects of the performance issue are limited. Some tabs with |
About how to handle performance issues, I think it deserves detailed discussion. |
Hi @ctxhou , is there any plan to add a feature like cached prop to this module, in near future??? |
Hi @dineshnamburi, I will try to add this feature in recent. Maybe next month. |
@ctxhou Any plan on implementing the feature? Thanks. |
Hi @qqdaiyu55 |
@ctxhou Sorry I'm also busy recently, I'll take a look if I have time. If you have any idea on implementing this feature, you can post it here : ) |
Any update on it? or any possible solution or hack for now? |
Suppose we have a couple of components that are stateful, now we mount them to tab content.
I know I can change the state of one component, when the tab that contains it is activated. But after switching to another tab and back, the component is re-mounted and the modified state of it is gone.
Maybe it is too much for
react-tabtab
, but is there a way to maintain the states of all tab content ?The text was updated successfully, but these errors were encountered: