Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

lepikhinb
Copy link
Contributor

@lepikhinb lepikhinb commented May 14, 2024

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: inertiajs/inertia-laravel#622

@driesvints driesvints requested a review from reinink May 15, 2024 14:59
@taylorotwell taylorotwell merged commit 680b2eb into inertiajs:master May 17, 2024
4 checks passed
@reinink reinink changed the title [1.x] Exclude properties from partial responses Add new except visit option to exclude properties from partial reload May 25, 2024
@reinink reinink changed the title Add new except visit option to exclude properties from partial reload Add new except visit option to exclude properties from partial reloads May 25, 2024
@reinink reinink changed the title Add new except visit option to exclude properties from partial reloads Add new except visit option to exclude props from partial reloads May 25, 2024
jamesst20 added a commit to jamesst20/inertia that referenced this pull request May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants