SPA Router #3314
Labels
add new content
Document something that is not in docs. May require testing, confirmation, or affect other pages.
merge-on-release
Don't merge this before the feature is released! (MQ=approved but WAIT for feature release!)
minor-release
For the next minor release; in the milestone, "merge queue" when approved by Sarah!
Needs
The config reference page will include details on about how to enable this feature.
This might require some restructuring of other docs pages that mention MPA vs SPA as general concepts.
How it works
API is being finalized, but will likely be configured globally in the
astro.config.mjs
file.This will enhance all
<a>
tags to perform a soft navigation rather than a full page reload.Individual
<a>
tags can usedata-
attributes to control specific behavior.<a data-router-ignore>
will skip SPA navigation and perform a traditional page load<a data-router-noscroll>
will not scroll to the top of the page upon navigation<a data-router-keepfocus>
will not reset focus upon navigationReference
Although the implementations are quite different, SvelteKit has similar behavior. Their Link Options documentation could be useful conceptual reference.
The text was updated successfully, but these errors were encountered: