nikneym
Using protobufs with Nuxt
Hi, I'm trying to integrate google protocol buffers to nuxt to use together with websockets. I've searched through the web but couldn't find any resources so I've came up with my own to provide build artifacts to my app:
Is this the preferred way? Thanks in advance.
7 replies
Passing props vs `useNuxtData`
Hi, when do you prefer
useNuxtData
over passing props and vice versa? For example I have a ServiceEntity
component that's been used for each row in a table. I'm curious if it'd be better to pass entities
prop to each (like <ServiceEntity :entities="entities" />
) or just directly using useNuxtData("service.entities")
inside of the component.3 replies
Writing a Nuxt 3 module with TailwindCSS
Hi, I'm developing a custom nuxt module with tailwind as a dependency. I can use it from the playground since I've installed the
@nuxtjs/tailwindcss
but I also want to use it in runtime/components
(where I write my custom components). My module.ts
looks like this:
2 replies