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

[Feature Request] Support Next.JS prefetch with Tab component #3041

Open
steebchen opened this issue May 21, 2024 · 1 comment
Open

[Feature Request] Support Next.JS prefetch with Tab component #3041

steebchen opened this issue May 21, 2024 · 1 comment

Comments

@steebchen
Copy link

steebchen commented May 21, 2024

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

Setting the prefetch attribute with Tab components in addition to href, so that you can force prefetching a tabs page (which you might want to do when it's a dynamic route).

Describe the solution you'd like

Something like:

<Tab
  key={`/product/${product.id}`}
  href={`/product/${product.id}`}
  title={`${product.title} Overview`}
  prefetch
/>

Describe alternatives you've considered

Put a <Link prefetch href="..."> somewhere else in the viewport so that the prefetching gets triggered from there 😅

Screenshots or Videos

No response

Copy link

linear bot commented May 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant