Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

felixele217's avatar

Retrieving Data in Subcomponent

Hey guys, I am using Inertia, Laravel and React in a project.

Let's say I have the following Page Show with the following Components

Page - Comp 1 - Comp 2 - Comp 3

If I want to have a prop in Comp 3, do I have to pass it all the way through? Or are there any other options.

Would it be good practices to use Shared Data or React Query?

Greetings Felix

0 likes
0 replies

Please or to participate in this conversation.