diff --git a/.changeset/five-walls-build.md b/.changeset/five-walls-build.md new file mode 100644 index 000000000000..41f89aa3e2e3 --- /dev/null +++ b/.changeset/five-walls-build.md @@ -0,0 +1,5 @@ +--- +'@astrojs/vue': patch +--- + +Fix vue islands keeping their state when using view transition persistence diff --git a/.changeset/grumpy-bobcats-rush.md b/.changeset/grumpy-bobcats-rush.md new file mode 100644 index 000000000000..c8b147fa570c --- /dev/null +++ b/.changeset/grumpy-bobcats-rush.md @@ -0,0 +1,5 @@ +--- +'@astrojs/solid-js': patch +--- + +Fix view transition state persistence diff --git a/packages/astro/e2e/fixtures/view-transitions/astro.config.mjs b/packages/astro/e2e/fixtures/view-transitions/astro.config.mjs index b7cfd434abb4..f406b0e0cd72 100644 --- a/packages/astro/e2e/fixtures/view-transitions/astro.config.mjs +++ b/packages/astro/e2e/fixtures/view-transitions/astro.config.mjs @@ -1,6 +1,7 @@ import nodejs from '@astrojs/node'; import react from '@astrojs/react'; import svelte from '@astrojs/svelte'; +import solidjs from '@astrojs/solid-js'; import vue from '@astrojs/vue'; import { defineConfig } from 'astro/config'; @@ -8,7 +9,11 @@ import { defineConfig } from 'astro/config'; export default defineConfig({ output: 'hybrid', adapter: nodejs({ mode: 'standalone' }), - integrations: [react(),vue(),svelte()], + integrations: [react( { + exclude: ['**/solid/**'], + }),vue(),svelte(),solidjs({ + include: ['**/solid/**'], + })], redirects: { '/redirect-two': '/two', '/redirect-external': 'http://example.com/', diff --git a/packages/astro/e2e/fixtures/view-transitions/package.json b/packages/astro/e2e/fixtures/view-transitions/package.json index 48cf30a9ae4b..08aae1afcf10 100644 --- a/packages/astro/e2e/fixtures/view-transitions/package.json +++ b/packages/astro/e2e/fixtures/view-transitions/package.json @@ -7,10 +7,12 @@ "@astrojs/react": "workspace:*", "@astrojs/svelte": "workspace:*", "@astrojs/vue": "workspace:*", + "@astrojs/solid-js": "workspace:*", "astro": "workspace:*", "react": "^18.3.1", "react-dom": "^18.3.1", "svelte": "^4.2.19", - "vue": "^3.5.3" + "vue": "^3.5.3", + "solid-js": "^1.8.0" } } diff --git a/packages/astro/e2e/fixtures/view-transitions/src/components/VueCounter.vue b/packages/astro/e2e/fixtures/view-transitions/src/components/VueCounter.vue index e75620aff455..e05cf6a1445f 100644 --- a/packages/astro/e2e/fixtures/view-transitions/src/components/VueCounter.vue +++ b/packages/astro/e2e/fixtures/view-transitions/src/components/VueCounter.vue @@ -1,8 +1,8 @@