Skip to content
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

[Tabs]: keep-alive the tabs on change or v-show instead of v-if or force render the background tabs #663

Closed
ManasMadrecha opened this issue Sep 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ManasMadrecha
Copy link

Is your feature request related to a problem? Please describe.

There are two issues:

  • Currently, the Tabs component does not render the other background tabs. So, the background content is not part of DOM, so not part of SEO.

  • Also, on Tab change, the previous tab is re-rendered. So, if the content of the previous tab fetches any data, it has to re-fetch it every time the tab is changed backed to it.

Describe the solution you'd like

  • For the first issue, kindly add a prop that can be added on a specific tab "force-render".

  • For the second issue, kindly add a prop that can be added on a specific tab, e.g., display-directive="show" (if v-show is to be used) and display-directive="if" (if v-if is to be used), so as to keep-alive the previous tab by simply hiding it and not deleting and re-creating it.

Describe alternatives you've considered

Additional context

@ManasMadrecha ManasMadrecha added the enhancement New feature or request label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant