Skip to content

Commit

Permalink
minor refactor: rename onClientEntry_ServerRouting => assertSingleIns…
Browse files Browse the repository at this point in the history
…tance_onClientEntryServerRouting
  • Loading branch information
brillout committed Jul 4, 2024
1 parent c8b5b75 commit 15ca240
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vike/client/server-routing-runtime/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import './pageFiles'
import { getPageContext } from './getPageContext.js'
import { executeOnRenderClientHook } from '../shared/executeOnRenderClientHook.js'
import { assertHook } from '../../shared/hooks/getHook.js'
import { onClientEntry_ServerRouting } from './utils.js'
import { assertSingleInstance_onClientEntryServerRouting } from './utils.js'
// @ts-ignore Since dist/cjs/client/ is never used, we can ignore this error.
const isProd: boolean = import.meta.env.PROD
onClientEntry_ServerRouting(isProd)
assertSingleInstance_onClientEntryServerRouting(isProd)

hydrate()

Expand Down
4 changes: 2 additions & 2 deletions vike/utils/assertSingleInstance.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { onClientEntry_ServerRouting }
export { assertSingleInstance_onClientEntryServerRouting }
export { onClientEntry_ClientRouting }
export { onAssertModuleLoad }

Expand Down Expand Up @@ -48,7 +48,7 @@ function assertSingleInstance() {
}
}

function onClientEntry_ServerRouting(isProduction: boolean) {
function assertSingleInstance_onClientEntryServerRouting(isProduction: boolean) {
assertWarning(globalObject.isClientRouting !== true, clientRuntimesClonflict, {
onlyOnce: true,
showStackTrace: true
Expand Down

0 comments on commit 15ca240

Please sign in to comment.