diff options
author | 2023-12-20 12:59:49 -0600 | |
---|---|---|
committer | 2023-12-20 12:59:49 -0600 | |
commit | 72b26daf694b213918f02d0fcbf90ab5b7ebc31f (patch) | |
tree | 38819098c4ab2888887ca320f1274566bde1a231 /packages/integrations/react/server-v17.js | |
parent | 97342d218e0c2d616005af6f6f54308115b89ec1 (diff) | |
download | astro-72b26daf694b213918f02d0fcbf90ab5b7ebc31f.tar.gz astro-72b26daf694b213918f02d0fcbf90ab5b7ebc31f.tar.zst astro-72b26daf694b213918f02d0fcbf90ab5b7ebc31f.zip |
Skip `check` for known Qwik components (#9482)
Diffstat (limited to 'packages/integrations/react/server-v17.js')
-rw-r--r-- | packages/integrations/react/server-v17.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/integrations/react/server-v17.js b/packages/integrations/react/server-v17.js index 5638c6fb7..12e1f198e 100644 --- a/packages/integrations/react/server-v17.js +++ b/packages/integrations/react/server-v17.js @@ -20,6 +20,7 @@ function check(Component, props, children) { return Component['$$typeof']?.toString().slice('Symbol('.length).startsWith('react'); } if (typeof Component !== 'function') return false; + if (Component.name === "QwikComponent") return false; if (Component.prototype != null && typeof Component.prototype.render === 'function') { return React.Component.isPrototypeOf(Component) || React.PureComponent.isPrototypeOf(Component); |