Reinitialized commit. Update and actors overview with some filters.
This commit is contained in:
13
renderer/+onRenderClient.js
Normal file
13
renderer/+onRenderClient.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// https://vike.dev/onRenderClient
|
||||
import { createApp } from './app';
|
||||
|
||||
// This onRenderClient() hook only supports SSR, see https://vike.dev/render-modes for how to modify onRenderClient()
|
||||
// to support SPA
|
||||
async function onRenderClient(pageContext) {
|
||||
const { Page, pageProps } = pageContext;
|
||||
if (!Page) throw new Error('Client-side render() hook expects pageContext.Page to be defined');
|
||||
const app = createApp(Page, pageProps, pageContext);
|
||||
app.mount('#app');
|
||||
}
|
||||
|
||||
export { onRenderClient };
|
||||
Reference in New Issue
Block a user