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

[RFR] [Rework] Fix sending request by Query with deep props on every update #3267

Merged
merged 1 commit into from May 23, 2019

Conversation

fargito
Copy link
Contributor

@fargito fargito commented May 22, 2019

This is a rework of #3176

  • Changed shallowEqual to deepEqual in Query to accommodate for possible deep props.

  • Changed the placement of myPayload variable.
    When myPayload is global the objects are indeed identical and the script worked did pass. However, this assumes independency from props, which is not desired. This can easily lead to endless loops.

Fixes #3174

Closes #3176

@fargito fargito changed the title Fix sending request by Query with deep props on every update [RFR] [Rework] Fix sending request by Query with deep props on every update May 22, 2019
Copy link
Contributor

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@djhi djhi added this to the 2.9.2 milestone May 22, 2019
@fzaninotto fzaninotto merged commit f45bf90 into marmelab:master May 23, 2019
@fzaninotto
Copy link
Member

Thanks!

@fargito fargito deleted the fix-query-requests-on-update branch May 27, 2019 16:12
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.

Deep props make Query send request on every update
4 participants