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) vnode._children should keep their type as array when diffing #1924

Merged
merged 3 commits into from
Sep 13, 2019

Conversation

cristianbote
Copy link
Member

@cristianbote cristianbote commented Sep 10, 2019

When trying to pave the way for preact-redux with the latest rc, seems that the _children is loosing it's array type whenever react-redux is trying to .forceUpdate().
This is the relevant error and log https://travis-ci.org/developit/preact-redux/builds/583356189#L390

Adds +2B

@coveralls
Copy link

coveralls commented Sep 10, 2019

Coverage Status

Coverage increased (+0.1%) to 99.882% when pulling 285c982 on fix/_children-should-keep-their-type-as-array into 33c8360 on master.

Copy link
Member

@JoviDeCroock JoviDeCroock left a comment

Choose a reason for hiding this comment

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

LGTM

@cristianbote
Copy link
Member Author

I still need to add a test for this.

@cristianbote cristianbote merged commit 3262b5c into master Sep 13, 2019
@cristianbote cristianbote deleted the fix/_children-should-keep-their-type-as-array branch September 13, 2019 10:49
@marvinhagemeister
Copy link
Member

@cristianbote did you manage to find a test case for this?👀 I had in mind that it would be added before merging, but my comment wasn't clear at all

@cristianbote
Copy link
Member Author

Oh 💩 totally forgot about it! Will add it asap. Thanks for reminding me! 😟

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.

5 participants