astro 2.9.3
Patch Changes
-
#7782
0f677c009Thanks @bluwy! - Refactor Astro rendering to write results directly. This improves the rendering performance for all Astro files. -
#7786
188eeddd4Thanks @matthewp! - Execute scripts when navigating to a new page.When navigating to an new page with client-side navigation, scripts are executed (and re-executed) so that any new scripts on the incoming page are run and the DOM can be updated.
However,
type=modulescripts never re-execute in Astro, and will not do so in client-side routing. To support cases where you want to modify the DOM, a newastro:loadevent listener been added:document.addEventListener('astro:load', () => { updateTheDOMSomehow(); });