diff options
author | 2023-10-09 14:23:53 +0000 | |
---|---|---|
committer | 2023-10-09 14:23:53 +0000 | |
commit | a0dc79b94673567e97f0031c84b919f07789a3db (patch) | |
tree | 0be2fa4d1c6332df6b5b44fda879c808fa2022d4 | |
parent | 160d1cd755e70af1d8ec294d01dd2cb32d60db50 (diff) | |
download | astro-a0dc79b94673567e97f0031c84b919f07789a3db.tar.gz astro-a0dc79b94673567e97f0031c84b919f07789a3db.tar.zst astro-a0dc79b94673567e97f0031c84b919f07789a3db.zip |
[ci] format
-rw-r--r-- | packages/astro/src/runtime/server/hydration.ts | 3 | ||||
-rw-r--r-- | packages/astro/src/runtime/server/render/component.ts | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/packages/astro/src/runtime/server/hydration.ts b/packages/astro/src/runtime/server/hydration.ts index 8c5635105..4c8b71ba8 100644 --- a/packages/astro/src/runtime/server/hydration.ts +++ b/packages/astro/src/runtime/server/hydration.ts @@ -12,7 +12,7 @@ export interface HydrationMetadata { directive: string; value: string; componentUrl: string; - componentExport: { value: string; }; + componentExport: { value: string }; } type Props = Record<string | number | symbol, any>; @@ -29,7 +29,6 @@ const transitionDirectivesToCopyOnIsland = Object.freeze([ 'data-astro-transition-persist', ]); - // Used to extract the directives, aka `client:load` information about a component. // Finds these special props and removes them from what gets passed into the component. export function extractDirectives( diff --git a/packages/astro/src/runtime/server/render/component.ts b/packages/astro/src/runtime/server/render/component.ts index 91d74e812..002f4ebaf 100644 --- a/packages/astro/src/runtime/server/render/component.ts +++ b/packages/astro/src/runtime/server/render/component.ts @@ -92,7 +92,10 @@ async function renderFrameworkComponent( displayName, }; - const { hydration, isPage, props, propsWithoutTransitionAttributes } = extractDirectives(_props, clientDirectives); + const { hydration, isPage, props, propsWithoutTransitionAttributes } = extractDirectives( + _props, + clientDirectives + ); let html = ''; let attrs: Record<string, string> | undefined = undefined; |