Skip to content

Commit

Permalink
Merge pull request #39 from musimana/feature/UseCreateSsrApp
Browse files Browse the repository at this point in the history
Updated app.js to use CreateSSRApp
  • Loading branch information
musimana authored Apr 1, 2024
2 parents cb0bf40 + e30f0e1 commit b1c47c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './bootstrap'
import '../css/app.css'

import { createApp, h } from 'vue'
import { createSSRApp, h } from 'vue'
import { createInertiaApp } from '@inertiajs/vue3'
import { resolvePageComponent } from 'laravel-vite-plugin/inertia-helpers'
import { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.m'
Expand All @@ -16,7 +16,7 @@ createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')),
setup({ el, App, props, plugin }) {
return createApp({ render: () => h(App, props) })
return createSSRApp({ render: () => h(App, props) })
.use(plugin)
.use(ZiggyVue)
.mount(el)
Expand Down

0 comments on commit b1c47c5

Please sign in to comment.