diff --git a/packages/integrations/preact/client.js b/packages/integrations/preact/client.js index 6ff40d2ae1c5..c3c5d1d0d912 100644 --- a/packages/integrations/preact/client.js +++ b/packages/integrations/preact/client.js @@ -2,7 +2,6 @@ import { h, render } from 'preact'; import StaticHtml from './static-html.js'; export default (element) => (Component, props, children) => { - if (!element.hasAttribute('ssr')) return; render( h(Component, props, children != null ? h(StaticHtml, { value: children }) : children), element diff --git a/packages/integrations/react/client.js b/packages/integrations/react/client.js index 2828d2cbe3ac..493a146ab19e 100644 --- a/packages/integrations/react/client.js +++ b/packages/integrations/react/client.js @@ -12,7 +12,6 @@ function isAlreadyHydrated(element) { export default (element) => (Component, props, children, { client }) => { - if (!element.hasAttribute('ssr')) return; const componentEl = createElement( Component, props, diff --git a/packages/integrations/solid/client.js b/packages/integrations/solid/client.js index 005f3c980376..7b688d1c48de 100644 --- a/packages/integrations/solid/client.js +++ b/packages/integrations/solid/client.js @@ -6,7 +6,6 @@ export default (element) => (Component, props, childHTML, { client }) => { if (!window._$HY) { window._$HY = { events: [], completed: new WeakSet(), r: {} }; } - if (!element.hasAttribute('ssr')) return; const fn = client === 'only' ? render : hydrate; diff --git a/packages/integrations/svelte/client.js b/packages/integrations/svelte/client.js index 3f401b544f94..3e19a426b5e4 100644 --- a/packages/integrations/svelte/client.js +++ b/packages/integrations/svelte/client.js @@ -2,7 +2,6 @@ import SvelteWrapper from './Wrapper.svelte'; export default (target) => { return (component, props, children, { client }) => { - if (!target.hasAttribute('ssr')) return; delete props['class']; try { new SvelteWrapper({ diff --git a/packages/integrations/vue/client.js b/packages/integrations/vue/client.js index 4832a984760b..3685ffc87663 100644 --- a/packages/integrations/vue/client.js +++ b/packages/integrations/vue/client.js @@ -3,7 +3,6 @@ import StaticHtml from './static-html.js'; export default (element) => (Component, props, children, { client }) => { delete props['class']; - if (!element.hasAttribute('ssr')) return; // Expose name on host component for Vue devtools const name = Component.name ? `${Component.name} Host` : undefined;