Skip to content

Conversation

pascalbaljet
Copy link
Member

This PR is a follow-up to PR #732 to improve the DX. It replaces the mergeStrategies argument and naming in favor of a matchOn() method:

- Inertia::deepMerge(User::paginate(), 'data.id']);
+ Inertia::deepMerge(User::paginate())->matchOn('data.id');

I'll soon open the JS counterpart in the Inertia repo for this.

@pascalbaljet pascalbaljet marked this pull request as ready for review June 18, 2025 15:42
@pascalbaljet pascalbaljet merged commit b732a5c into 2.x Jun 20, 2025
37 checks passed
@pascalbaljet pascalbaljet deleted the refactor-merge-strategies branch June 20, 2025 12:40
adrum added a commit to adrum/InertiaCore that referenced this pull request Sep 22, 2025
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.

1 participant