Skip to content

[Live] Adding failing test case for updating individual parts of deeply writable paths #721

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

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

weaverryan
Copy link
Member

Q A
Bug fix? yes
New feature? no
Tickets Fix #720
License MIT

In the unreleased code, writing a "deep" path to an array LiveProp is broken (e.g. formValues in ComponentWithFormTrait when you have an embedded form). Test case here, solution coming shortly.

@weaverryan weaverryan changed the title [WIP][Live] Adding failing test case for updating individual parts of deeply writable paths [Live] Adding failing test case for updating individual parts of deeply writable paths Mar 8, 2023
@weaverryan
Copy link
Member Author

This works now on the reproducer from #720. I'm playing a bit of whack-a-mole with hydration edge-cases, but I don't think it's a problem: each adds a new test case, and I think remaining problems are finite.

@weaverryan weaverryan force-pushed the fix-deeply-writable-path-updates branch from 980d931 to 7954675 Compare March 13, 2023 18:31
@weaverryan weaverryan merged commit fc8b5db into symfony:2.x Mar 13, 2023
@weaverryan weaverryan deleted the fix-deeply-writable-path-updates branch March 13, 2023 18:31
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.

[LiveComponent] Fix bug where writable path does not respect frontend "fieldName"
1 participant