Skip to content

Commit

Permalink
Fix class property Vue hydration error (#9620)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jan 5, 2024
1 parent 8b8bf60 commit a1bb5fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dirty-monkeys-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/vue": patch
---

Fixes `class` property hydration error
1 change: 0 additions & 1 deletion packages/integrations/vue/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import StaticHtml from './static-html.js';

export default (element) =>
async (Component, props, slotted, { client }) => {
delete props['class'];
if (!element.hasAttribute('ssr')) return;

// Expose name on host component for Vue devtools
Expand Down

0 comments on commit a1bb5fe

Please sign in to comment.