Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored and astrobot-houston committed Oct 9, 2023
1 parent 160d1cd commit a0dc79b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/astro/src/runtime/server/hydration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand All @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion packages/astro/src/runtime/server/render/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a0dc79b

Please sign in to comment.