mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
320c309ca9
commit
a29b0a3d69
1 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ async function renderFrameworkComponent(
|
|||
_props: Record<string | number, any>,
|
||||
slots: any = {}
|
||||
): Promise<RenderInstance> {
|
||||
if (!Component && "client:only" in _props === false) {
|
||||
if (!Component && 'client:only' in _props === false) {
|
||||
throw new Error(
|
||||
`Unable to render ${displayName} because it is ${Component}!\nDid you forget to import the component or is it possible there is a typo?`
|
||||
);
|
||||
|
@ -265,8 +265,8 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
|
|||
} else {
|
||||
if (metadata.hydrate === 'only') {
|
||||
const rendererName = rendererAliases.has(metadata.hydrateArgs)
|
||||
? rendererAliases.get(metadata.hydrateArgs)
|
||||
: metadata.hydrateArgs;
|
||||
? rendererAliases.get(metadata.hydrateArgs)
|
||||
: metadata.hydrateArgs;
|
||||
if (!clientOnlyValues.has(rendererName)) {
|
||||
// warning if provide incorrect client:only directive but find the renderer by guess
|
||||
console.warn(
|
||||
|
|
Loading…
Reference in a new issue