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

[1.1.0] Partial reloads - Object props updated incorrectly #1885

Closed
Megarsh opened this issue May 30, 2024 · 1 comment · Fixed by #1895
Closed

[1.1.0] Partial reloads - Object props updated incorrectly #1885

Megarsh opened this issue May 30, 2024 · 1 comment · Fixed by #1895
Assignees
Labels
investigate The issue needs further investigating

Comments

@Megarsh
Copy link

Megarsh commented May 30, 2024

Version:

  • @inertiajs/vue3 version: 1.1.0

Describe the problem:

On partial reloads Object props are updated incorrectly.

Example

if we have a data prop with value

{
  "b": 2,
  "a": 1,
  "c": 3,
  "d": 4
}

And on the partial reload we get a new value of

{
  "b": 40
}

The missing keys are being kept and the new value is returned as

{
  "b": 40,
  "a": 1,
  "c": 3,
  "d": 4
}

Steps to reproduce:

Minimal reproduction - https://github.com/Megarsh/inertia-issue

@driesvints driesvints added the investigate The issue needs further investigating label May 31, 2024
@reinink
Copy link
Member

reinink commented Jun 13, 2024

Hey thanks for reporting, this should be fixed now in v1.2.0 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate The issue needs further investigating
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants