summaryrefslogtreecommitdiff
path: root/packages/integrations/react/server.js
diff options
context:
space:
mode:
authorGravatar Ken Powers <ematipico@users.noreply.github.com> 2023-12-18 13:42:49 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-12-18 13:42:49 +0000
commit76b4e55894d6b5424260b6ad069d098b2e61e141 (patch)
treed52d88f9cf11dffadd43ad44c06e7ff19a7f1fc1 /packages/integrations/react/server.js
parent7eb9fe8a717dd2b66b1d541e1aa4d3eb5d959ddf (diff)
downloadastro-76b4e55894d6b5424260b6ad069d098b2e61e141.tar.gz
astro-76b4e55894d6b5424260b6ad069d098b2e61e141.tar.zst
astro-76b4e55894d6b5424260b6ad069d098b2e61e141.zip
[ci] format
Diffstat (limited to 'packages/integrations/react/server.js')
-rw-r--r--packages/integrations/react/server.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/integrations/react/server.js b/packages/integrations/react/server.js
index f1e5fdc24..4c1aac933 100644
--- a/packages/integrations/react/server.js
+++ b/packages/integrations/react/server.js
@@ -24,7 +24,8 @@ async function check(Component, props, children) {
if (typeof Component !== 'function') return false;
// Preact forwarded-ref components can be functions, which React does not support
- if (typeof Component === 'function' && Component['$$typeof'] === Symbol.for('react.forward_ref')) return false;
+ if (typeof Component === 'function' && Component['$$typeof'] === Symbol.for('react.forward_ref'))
+ return false;
if (Component.prototype != null && typeof Component.prototype.render === 'function') {
return React.Component.isPrototypeOf(Component) || React.PureComponent.isPrototypeOf(Component);