I think this is something satisfying with inertiajs partial reload. https://inertiajs.com/partial-reloads
https://laracasts.com/discuss/channels/inertia/inertia-lazy-first-render-with-react
Best way to "lazy" load into a component using Inertia and Laravel?
Hi!
So I have in my web apps severals components that should be able to work standalone.
Let's say I have a "group" picker on a student. The student might have the option to change its group, the teacher might have the option to change its group and the administration might have this option too.
If it's on 5 different pages, I would need to make the query "load all the groups" 5 different time in 5 different controllers.
Would there be a way to tell Inertia "when there is the component XYZ, retrieve all the groups only for this component" without having to include it in each page where it is loaded?
Please or to participate in this conversation.