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

Extend prefetch() API #1506

Closed
LankyMoose opened this issue Feb 21, 2024 · 1 comment
Closed

Extend prefetch() API #1506

LankyMoose opened this issue Feb 21, 2024 · 1 comment
Labels
enhancement ✨ New feature or request

Comments

@LankyMoose
Copy link

Description

It would be really great if the prefetch() API could return the data from the fetched route. For example, I'd like to get some context / meta data from the hovered link in order to show some kind of a preview.

@LankyMoose LankyMoose added the enhancement ✨ New feature or request label Feb 21, 2024
@brillout
Copy link
Member

brillout commented Feb 21, 2024

Although I agree that'd be nice, I ain't sure how much of a priority this should be for the Vike team.

That said, you can increase the priority by:

  • Further elaborating your use case. (The more we can see how much added value it adds, the higher we'll increase its priority.)
  • Creating a PR. (For example, if your PR showcases that supporting your use case is easy to implement, then we'll merge it. That said, keep in mind that we may reject your PR if reviewing it would take too much time.)
  • Does any React/Vue/Solid framework out there support your use case? If yes that also increases the priority.
  • Sponsoring Vike

I'm closing this ticket but let's re-open once we increase its priority.

@brillout brillout closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2024
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

2 participants