You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all, I have been trying to use NuxtServerInit with Vuex ORM, and thus far, I have had no success.
Is it possible to use NuxtServerInit to make retreive data from the backend, and hydrate the Vuex ORM database? I don't have much more than the setup from the documentation. I have tried different things without success, and I am hoping that someone may have an example of how to set this up. I would like to use NuxtServerInit to hydrate the Comments if possible.
database/index.js
import { Database } from '@vuex-orm/core'
import Comment from '@/models/Comment'
const database = new Database()
database.register(Comment)
export default database
store/index.js
import VuexORM from '@vuex-orm/core'
import database from '@/database'
export const plugins = [
VuexORM.install(database)
]
Thanks! Andy
The text was updated successfully, but these errors were encountered:
Hello all, I have been trying to use NuxtServerInit with Vuex ORM, and thus far, I have had no success.
Is it possible to use NuxtServerInit to make retreive data from the backend, and hydrate the Vuex ORM database? I don't have much more than the setup from the documentation. I have tried different things without success, and I am hoping that someone may have an example of how to set this up. I would like to use NuxtServerInit to hydrate the Comments if possible.
database/index.js
import { Database } from '@vuex-orm/core'
import Comment from '@/models/Comment'
const database = new Database()
database.register(Comment)
export default database
store/index.js
import VuexORM from '@vuex-orm/core'
import database from '@/database'
export const plugins = [
VuexORM.install(database)
]
Thanks! Andy
The text was updated successfully, but these errors were encountered: