A way to disable prefetch with ViewTransitions #8926
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
feat: view transitions
Related to the View Transitions feature (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have an app with cookie-based authentication and a sign-out link. When ViewTransitions are enabled, hovering over the sign-out link causes the sign-out per se. There should be a way to tell Astro to disable prefetch on some links, adding "data-astro-reload" to a link doesn't prevent prefetching.
What's the expected result?
A data attribute to disable prefetch, perhaps?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-hmcjqs
Participation
The text was updated successfully, but these errors were encountered: