Server Side
To defer a prop, you can use theInertia::defer() method when returning your response. This method receives a callback that returns the prop data. The callback will be executed in a separate request after the initial page render.
Grouping Requests
By default, all deferred props get fetched in one request after the initial page is rendered, but you can choose to fetch data in parallel by grouping props together.teams, projects, and tasks props will be fetched in one request, while the permissions prop will be fetched in a separate request in parallel. Group names are arbitrary strings and can be anything you choose.
Client Side
On the client side, Inertia provides theDeferred component to help you manage deferred props. This component will automatically wait for the specified deferred props to be available before rendering its children.
data prop.