Skip to content

Commit

Permalink
fix(nuxt): remove experimental hash hydration (#22648)
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Aug 16, 2023
1 parent 929dba4 commit 28e4cc2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/nuxt/src/head/module.ts
Expand Up @@ -60,13 +60,8 @@ export default defineNuxtModule({
if (!nuxt.options.experimental.headNext) {
return 'export default []'
}
// TODO don't use HashHydrationPlugin for SPA
return `import { CapoPlugin, HashHydrationPlugin } from '@unhead/vue'
const plugins = [HashHydrationPlugin()];
if (process.server) {
plugins.push(CapoPlugin({ track: true }));
}
export default plugins;`
return `import { CapoPlugin } from '@unhead/vue';
export default process.server ? [CapoPlugin({ track: true })] : [];`
}
})

Expand Down

0 comments on commit 28e4cc2

Please sign in to comment.