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

fix(get): reactivity on proxy objects #36

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

saibotk
Copy link
Member

@saibotk saibotk commented Aug 22, 2024

Fixes #34

This is a backport of the change from the 2.x version. Thanks to @Tofandel for reporting the issue.

We simply just added a condition to the reduce code to actually touch the objects instead of only checking the path existence via the hasOwnProperty call.

This enables frameworks like Vue to properly track the reactivity on return values again.

Fixes #34

This is a backport of the change from the 2.x version. Thanks to @Tofandel for reporting the issue.

We simply just added a condition to the reduce code to actually touch the objects instead of only checking the path existence via the `hasOwnProperty` call.

This enables frameworks like Vue to properly track the reactivity on return values again.
@saibotk saibotk requested a review from djfhe August 22, 2024 15:39
@saibotk saibotk self-assigned this Aug 22, 2024
@saibotk saibotk merged commit 7f08ca6 into 1.x Aug 22, 2024
1 check passed
@saibotk saibotk deleted the backport-reactivity-fix branch August 22, 2024 19:39
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