NuxtN
Nuxt2y ago
2 replies
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.
Was this page helpful?