From a0dc79b94673567e97f0031c84b919f07789a3db Mon Sep 17 00:00:00 2001 From: bluwy Date: Mon, 9 Oct 2023 14:23:53 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/hydration.ts | 3 +-- 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; @@ -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 | undefined = undefined;