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

Don't mutate args in updatedEntities #1079

Merged
merged 3 commits into from
May 8, 2019

Conversation

OtterleyW
Copy link
Contributor

No description provided.

@@ -52,7 +53,7 @@ export const updatedEntities = (oldEntities, apiResponse) => {
const entity = entities[type][id.uuid];
Copy link
Contributor

Choose a reason for hiding this comment

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

Deep cloning might be too heavy, but spread, at least, this entity and its attributes (can be done on line 29).

@OtterleyW OtterleyW force-pushed the no-mutated-args-in-updated-entities branch from c8c0dc3 to dfb8c97 Compare May 8, 2019 09:50
@OtterleyW OtterleyW force-pushed the no-mutated-args-in-updated-entities branch from dfb8c97 to ec76c3f Compare May 8, 2019 09:51
@OtterleyW OtterleyW merged commit 0a5d609 into master May 8, 2019
@OtterleyW OtterleyW deleted the no-mutated-args-in-updated-entities branch May 8, 2019 09:54
@Gnito Gnito mentioned this pull request May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants