Skip to content

Child Order Consistency#19

Merged
marksteyn merged 3 commits intocloudflare:masterfrom
hturan:child-order-consistency
Dec 19, 2016
Merged

Child Order Consistency#19
marksteyn merged 3 commits intocloudflare:masterfrom
hturan:child-order-consistency

Conversation

@hturan
Copy link
Contributor

@hturan hturan commented Dec 16, 2016

When rendering multipleGateways into the same GatewayDestination the order of the child components isn't enforced, meaning that whenever the Gateway receives props there's a chance that the component tree will change.

We ran into this issue when rendering multiple cf-ui cf-component-modals on the same page, as they each render into the same GatewayDestination. Whenever props changed, the order of the components would switch, causing ReactCSSTransitionGroup flickering and ref losses.

@hturan
Copy link
Contributor Author

hturan commented Dec 16, 2016

This could do with more testing, especially attempting to replicate the original issues with prop updates and component order switching. I'll try and come up with a decent way of replicating them.

@marksteyn marksteyn merged commit 7c953de into cloudflare:master Dec 19, 2016
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