Skip to content

Commit a9628fd

Browse files
committed
minor refactor: rename valFromUseConfig => valFromHook
1 parent 3300da6 commit a9628fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/vike-vue/src/integration/getHeadSetting.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ function getHeadSetting<T>(
1414
pageContext: PageContext & PageContextInternal,
1515
): undefined | T {
1616
// Set by useConfig()
17-
const valFromUseConfig = pageContext._configViaHook?.[configName]
17+
const valFromHook = pageContext._configViaHook?.[configName]
1818
// Set by +configName.js
1919
const valFromConfig = pageContext.config[configName]
2020

2121
const getCallable = (val: unknown) => (isCallable(val) ? val(pageContext) : val)
2222
if (!includes(configsCumulative, configName)) {
23-
if (valFromUseConfig !== undefined) return valFromUseConfig as any
23+
if (valFromHook !== undefined) return valFromHook as any
2424
return getCallable(valFromConfig) as any
2525
} else {
2626
return [
2727
//
2828
...((valFromConfig as any) ?? []).map(getCallable),
29-
...((valFromUseConfig as any) ?? []),
29+
...((valFromHook as any) ?? []),
3030
] as any
3131
}
3232
}

0 commit comments

Comments
 (0)