Skip to content

Conversation

@vinnygambiny
Copy link
Contributor

This PR resolve this issue inertiajs/inertia#2371

When you reload with partial data, the mergeProps dans deepMergeProps contains all props. So the VueJS will merge the prop with the response, but the response don't have the props.

Example props

[
    'user' => $user,
    'foo' => new MergeProp('foo value'),
]

If you reload with only user, the response will have mergeProps: ['foo'] but the foo is not there.

The same with the except.

@pascalbaljet pascalbaljet changed the title Keep only partial data in mergeProps [2.x] Keep only partial data in mergeProps Jun 17, 2025
@pascalbaljet pascalbaljet merged commit f7d630a into inertiajs:2.x Jun 17, 2025
18 checks passed
@pascalbaljet
Copy link
Member

Thanks!

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