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

🐛 Fixes proxy stack setters bug #3807

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Conversation

ekwoka
Copy link
Contributor

@ekwoka ekwoka commented Oct 12, 2023

Solves #3804

This was a regression in the behaviors from the merge proxy optimization.

This still seems problematic in many ways. but this more faithfully represents the older logic.

If there is a getter setter pair, the this refers to the proxy stack. If it's just a setter, it doesn't (this was how the original logic worked).

Similarly to before, using getters/settings/methods,etc on the parent component can modify the child component when keys match. Not great, but that's how it has been.

It could be possible to instead limit it only to that level and parents, but that would change the behavior.

This also adds tests to ensure this continues to work :)

@calebporzio
Copy link
Collaborator

Thanks @ekwoka for handling this!

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