Files
trpc-nuxt/playground/plugins/trpc.ts
Robert Soriano 041d1840b9 update readme
2022-05-18 11:35:53 -07:00

18 lines
418 B
TypeScript

import { defineNuxtPlugin } from '#app'
export default defineNuxtPlugin((nuxtApp) => {
// if (process.server) {
// nuxtApp.hooks.hook('app:rendered', () => {
// nuxtApp.ssrContext['']
// })
// }
// if (process.client) {
// nuxtApp.hooks.hook('app:created', () => {
// console.log('app:created')
// })
// }
if (nuxtApp.ssrContext)
console.log('hello', nuxtApp.ssrContext)
})