Pandaman
TTCTheo's Typesafe Cult
•Created by Pandaman on 5/8/2023 in #questions
Noob question: NextJS DI to avoid prop drilling?
I'm working on a project were we have a lot of props being drilled
>A
>B
>C
>D
.....
I
We use a lot of data or traffic getting a new page because we call the same api or get the same data to build or pages. We use 6 Contexts with their own data being fetched and handled down to the pages, components etc.
Is there a better way to do this? what am I missing?
Angular have these services etc. u just inject into ur component like this xx[service, service2]
10 replies