Post

Ok, so this coupled with prefetching on hover is actually kind of nice. For my use case I had to tweak 3 view transition lifecycle events (to preserve scroll position and to handle only specific routes) - but it works so far. Again, @astro.build docs are superb: docs.astro.build/en/guides/vi...

docs.astro.buildView transitionsEnable seamless navigation between pages in Astro with view transitions.
Ilja@fubits.dev

😬 @astro.build cursed shallow routing!?

0 reposts2 likes

Ahhhh jetzt wo ich vtbag.dev sehe, macht es bei mir Click 🫠! Ich lese mir morgen mal die High Level Considerations durch! Die Lifecycles fand ich jedenfalls ziemlich intuitiv.

ja, pageswap und pagereveal der View Transition API waren leider noch unbekannt, als wir die Lifecycle events für Astro js definiert haben. Grinsen musste ich, weil Du im Beispiel den swap einfach wegdefinierst, da Du eh schon alles im before-swap erledigt hast. Have fun with view transitions!