Partial reloads
You can find all details in Official documentation.
For partial reloads to be most effective, be sure to also use lazy data evaluation server-side.
This can be done by wrapping all optional page data in a callable or the adapter lazy function. When Inertia performs a visit, it will determine which data is required, and only then will it call the function. This can significantly increase the performance of pages with a lot of optional data.
app/http/controllers/UsersController.py
For convenience, the request
argument will be automatically passed to lazy loaded props. In the example above the get_users
will receive the request object (even if not used).
Last updated