Yeah that's correct. But if you don't need all data om first render you can lazy load it
Inertia Fetch data from laravel api
Hello everyone i will try to explain my problem at best i can. Im using Laravel+Vue+Inertia
I have a page where a user can see the details of one production plan, in this page i need to show every item in this production and to get here no problem, i have a route that returns an Inertia::render with the array of items.
Once i display those items i need to also fetch all the components of the items and display them. After this i have one more layer of components.
My idea was to try and use Inertia::get but I'm not able to make it work.
Is this the right path or should i just preload all the data in the controller and then pass it down with Inertia::render all together?
Any other ideas?
Thanks in advance!
Please or to participate in this conversation.