mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-26 18:00:37 +01:00
update readme
This commit is contained in:
17
playground/plugins/trpc.ts
Normal file
17
playground/plugins/trpc.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
})
|
||||
Reference in New Issue
Block a user