diff options
author | 2023-08-14 17:26:03 +0100 | |
---|---|---|
committer | 2023-08-14 11:26:03 -0500 | |
commit | da517d4055825ee1b630cd4a6983818d6120a7b7 (patch) | |
tree | cf8eb78e1466c6edc63db907a1700861f845ce58 /packages/integrations/react/client.js | |
parent | 7d7920ea918a5b1d4351346e13f4fbb92514a47a (diff) | |
download | astro-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.js | 2 |
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(() => { |