[ci] format
This commit is contained in:
parent
160d1cd755
commit
a0dc79b946
2 changed files with 5 additions and 3 deletions
|
@ -12,7 +12,7 @@ export interface HydrationMetadata {
|
||||||
directive: string;
|
directive: string;
|
||||||
value: string;
|
value: string;
|
||||||
componentUrl: string;
|
componentUrl: string;
|
||||||
componentExport: { value: string; };
|
componentExport: { value: string };
|
||||||
}
|
}
|
||||||
|
|
||||||
type Props = Record<string | number | symbol, any>;
|
type Props = Record<string | number | symbol, any>;
|
||||||
|
@ -29,7 +29,6 @@ const transitionDirectivesToCopyOnIsland = Object.freeze([
|
||||||
'data-astro-transition-persist',
|
'data-astro-transition-persist',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
// Used to extract the directives, aka `client:load` information about a component.
|
// 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.
|
// Finds these special props and removes them from what gets passed into the component.
|
||||||
export function extractDirectives(
|
export function extractDirectives(
|
||||||
|
|
|
@ -92,7 +92,10 @@ async function renderFrameworkComponent(
|
||||||
displayName,
|
displayName,
|
||||||
};
|
};
|
||||||
|
|
||||||
const { hydration, isPage, props, propsWithoutTransitionAttributes } = extractDirectives(_props, clientDirectives);
|
const { hydration, isPage, props, propsWithoutTransitionAttributes } = extractDirectives(
|
||||||
|
_props,
|
||||||
|
clientDirectives
|
||||||
|
);
|
||||||
let html = '';
|
let html = '';
|
||||||
let attrs: Record<string, string> | undefined = undefined;
|
let attrs: Record<string, string> | undefined = undefined;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue