You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if it was intentional, but either way, we aren't going to change this behavior in a point release because it would break things for more people than it would fix. Sounds like the workaround is to use cloneWIthProps instead, which apparently does preserve context.
Starting with React 0.14, context is parent based anyway, so context will no longer be attached to the element and therefore not impacted by cloneElement / cloneWithProps.
Is this intentional, and what is the right way of cloning elements with
context
passed to them correctly?Thanks!
The text was updated successfully, but these errors were encountered: