inertiajs / inertia

Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
https://inertiajs.com
MIT License
6.02k stars 405 forks source link

Add new `except` visit option to exclude props from partial reloads #1876

Closed lepikhinb closed 1 month ago

lepikhinb commented 1 month ago

The PR introduces an ability to exclude properties from partial responses. The except option can be used together with only to refine nested props.

router.visit(url, {
  only: ['auth'],
  except: ['auth.user'],
})

Corresponding Laravel adapter changes: https://github.com/inertiajs/inertia-laravel/pull/622