#ViewTransitions calling api endpoints on hover

5 messages · Page 1 of 1 (latest)

hushed flame
#

For some reason when I have ViewTransitions enabled, hovering over my logout button causes you to log out. It also is loading the pages (in console, listening to the path in the middleware) you hover over.

I've tried adding several arguments from the docs to the a links, including data-astro-reload, but it continues to log out on hover. I'm at a loss for what to do.

sturdy pelican
#

View transitions prefetch links on hover, otherwise transitions would be slow.

#

Typically, logging out should be done using a form, as it's a mutation

hushed flame