InertiaJS Partial Reloads: How They Work, When to Use Them, and What to Watch For
Learn how InertiaJS partial reloads let you refresh only the data you need, why the server still sends the full payload, and the common mistakes that cause stale UI.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how InertiaJS partial reloads let you refresh only the data you need, why the server still sends the full payload, and the common mistakes that cause stale UI.
Inertia.js partial reloads with the `only` option reduce payload size by fetching only requested page props, but server adapter cooperation is required to avoid stale data and compute waste.
Use Inertia.js only and except to reload specific page props without resending the entire payload.
Decide when to refresh only specific shared data with Inertia.reload({ only: [...] }) versus a full page reload, with validation steps.
Learn how Inertia's `only` option lets you fetch just the props you need, keeping client‑side state intact while shrinking network payloads.
Learn how Inertia.js’ ‘only’ prop lets you request and render just a component’s props, saving bandwidth and speeding up navigation in Laravel or Rails apps. See a step‑by‑step example, trade‑offs, and how to test it.
Learn how to update only the data‑heavy parts of an InertiaJS page with the `visit` method’s `only` option, reducing payload size and avoiding unnecessary UI resets.
Goal To determine whether Inertia.js should expose a framework‑agnostic lifecycle hook that guarantees the teardown of side effects (intervals, listeners, subscriptions) when a page component is discarded during a normal or partial navigation. Constraints Inertia.js only cleans its own internal events; Vue, React, and Svelte rely on their own unmount hooks.
When using Inertia.js partial reloads (v1.0.0+), the X-Inertia-Partial-Component header updates only the targeted component without a full page refresh. The current implementation does not automatically restore the scroll position after such a reload, leaving scroll handling to the application developer via the inertia:page-update event. This behavior create