@vincent15000
but the only way to pass down data is from the controller to the view, isn'it ?
Exactly. Or via shared data (which is the same but for all page)
To display component 1 with component 2 inside component 1, I need to send data to fill component 1 and component 2.
This is where usePage() comes in. As long as the data comes from the controller, you dont need to pass it down.
What I try to know is : is it possible to send only data to fill component 1 ? And then to fill component 2, I could use usePage() to retrieve the additional data to fill component 2 ?
Both are possible. If you find it easier to pass down data, then do that. If you dont want to pass it down use usePage()
datas that are already loaded in memory
usePage() is only for data that comes from the controller/shared data. In other words, data that laravel provides.
But as I said, you can still just use regular ajax to get some extra data in some component.