astro-rerun-island
v0.2.0
Published
Reruns your persistent server islands on `astro:after-swap` to refresh your content without showing the user unnecessary loading screens.
Downloads
12
Readme
Astro Rerun Island
Reruns your persistent server islands on astro:after-swap to refresh your content without showing the user unnecessary loading screens.
Usage
First, add the integration manually or using astro add.
npx astro add astro-rerun-island
pnpm dlx astro add astro-rerun-island
yarn dlx astro add astro-rerun-islandNext, set server:defer to "rerun" on your persistent island. Note that the server island cannot be persistent itself, but should instead be a child of a persisted element.
<nav transition:persistent>
<MyAccount server:defer="rerun"/>
</nav>