nikneym
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