summaryrefslogtreecommitdiff
path: root/packages/integrations/react/client.js
diff options
context:
space:
mode:
authorGravatar Erika <Princesseuh@users.noreply.github.com> 2024-03-08 10:58:49 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-03-08 10:58:49 +0000
commitc7edb22b4b3ca846cbd0ba07c1445f11cc1e8c24 (patch)
tree3af5fd9324023a9e09051467f0db0f2e564d87c9 /packages/integrations/react/client.js
parent2013e70bce16366781cc12e52823bb257fe460c0 (diff)
downloadastro-c7edb22b4b3ca846cbd0ba07c1445f11cc1e8c24.tar.gz
astro-c7edb22b4b3ca846cbd0ba07c1445f11cc1e8c24.tar.zst
astro-c7edb22b4b3ca846cbd0ba07c1445f11cc1e8c24.zip
[ci] format
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 cfe46a919..76f9ead00 100644
--- a/packages/integrations/react/client.js
+++ b/packages/integrations/react/client.js
@@ -57,7 +57,7 @@ function getChildren(childString, experimentalReactChildren) {
let rootMap = new WeakMap();
const getOrCreateRoot = (element, creator) => {
let root = rootMap.get(element);
- if(!root) {
+ if (!root) {
root = creator();
rootMap.set(element, root);
}