summaryrefslogtreecommitdiff
path: root/packages/integrations/react/client.js
diff options
context:
space:
mode:
authorGravatar Robin Neal <howdy@robinneal.co.uk> 2023-08-14 17:26:03 +0100
committerGravatar GitHub <noreply@github.com> 2023-08-14 11:26:03 -0500
commitda517d4055825ee1b630cd4a6983818d6120a7b7 (patch)
treecf8eb78e1466c6edc63db907a1700861f845ce58 /packages/integrations/react/client.js
parent7d7920ea918a5b1d4351346e13f4fbb92514a47a (diff)
downloadastro-da517d4055825ee1b630cd4a6983818d6120a7b7.tar.gz
astro-da517d4055825ee1b630cd4a6983818d6120a7b7.tar.zst
astro-da517d4055825ee1b630cd4a6983818d6120a7b7.zip
fix: remove react identifierPrefix from client:only (#8075)
This was causing React components rendered with client:only to be prefixed with null. While not technically causing any issues, it is unintended and could be considered a bug. Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/react/client.js')
-rw-r--r--packages/integrations/react/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/react/client.js b/packages/integrations/react/client.js
index ef5929af1..d8948e7bb 100644
--- a/packages/integrations/react/client.js
+++ b/packages/integrations/react/client.js
@@ -31,7 +31,7 @@ export default (element) =>
}
if (client === 'only') {
return startTransition(() => {
- createRoot(element, renderOptions).render(componentEl);
+ createRoot(element).render(componentEl);
});
}
return startTransition(() => {