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

Merge pull request #18707 from emberjs/bugfix/fix-object-proxy-tags #18707

Merged
merged 1 commit into from
Jan 30, 2020

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Jan 28, 2020

Currently, the Proxy mixin uses the private UNKNOWN_PROPERTY_TAG API
to provide the tags for the content property that the mixin is proxying
to. However, previously the chains system would do this and still
entangle changes to the local property. This allowed users to manually
notify in subclasses of Proxy.

This PR adds the tag for the property back to the returned tag, so it
works the same as before. It also refactors setupMandatorySetter,
since we now have to do that work in two places (to avoid re-entry).

Fixes #18704

@pzuraq pzuraq force-pushed the bugfix/fix-object-proxy-tags branch from 27ad2ef to 8db336a Compare January 28, 2020 22:17
Currently, the Proxy mixin uses the private `UNKNOWN_PROPERTY_TAG` API
to provide the tags for the content property that the mixin is proxying
to. However, previously the chains system would do this _and_ still
entangle changes to the local property. This allowed users to manually
notify in subclasses of Proxy.

This PR adds the tag for the property back to the returned tag, so it
works the same as before. It also refactors `setupMandatorySetter`,
since we now have to do that work in two places (to avoid re-entry).
@pzuraq pzuraq force-pushed the bugfix/fix-object-proxy-tags branch from 8db336a to 4934bc1 Compare January 30, 2020 20:22
@pzuraq pzuraq changed the title [BUGFIX release] Fixes tag chaining on Proxy mixins Merge pull request #18707 from emberjs/bugfix/fix-object-proxy-tags Jan 30, 2020
@pzuraq pzuraq merged commit 54072b7 into master Jan 30, 2020
@pzuraq pzuraq deleted the bugfix/fix-object-proxy-tags branch January 30, 2020 21:39
@theroncross
Copy link

Any chance this will make it back to 3.13?

@pzuraq
Copy link
Contributor Author

pzuraq commented Feb 3, 2020

This will be backported to 3.16, since it is an LTS. We do not support 3.13 anymore.

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.

[3.13+] ObjectProxy not rerendering
3 participants