Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
remix-run-bot committed Jun 14, 2023
1 parent 4efe65f commit 84a29d0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/remix-react/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,9 @@ import(${JSON.stringify(manifest.entry.module)});`;

if (!isStatic && typeof __remixContext === "object" && __remixContext.a) {
for (let i = 0; i < __remixContext.a; i++) {
deferredScripts.push(<DeferredHydrationScript key={i} scriptProps={props} />);
deferredScripts.push(
<DeferredHydrationScript key={i} scriptProps={props} />
);
}
}

Expand Down Expand Up @@ -1140,7 +1142,11 @@ function DeferredHydrationScript({
<Await
resolve={deferredData.data[dataKey]}
errorElement={
<ErrorDeferredHydrationScript dataKey={dataKey} routeId={routeId} scriptProps={scriptProps} />
<ErrorDeferredHydrationScript
dataKey={dataKey}
routeId={routeId}
scriptProps={scriptProps}
/>
}
children={(data) => (
<script
Expand Down

0 comments on commit 84a29d0

Please sign in to comment.