component-playground icon indicating copy to clipboard operation
component-playground copied to clipboard

passed context into inner root node and passed context via apply

Open GTDev87 opened this issue 9 years ago • 1 comments

This allows react-router to pass router context into inner mounting node. JSON.stringifygot rid of the functions on the router context.

Thanks!

GTDev87 avatar Aug 04 '16 23:08 GTDev87

Ran into a similar issue using examples with emotion and emotion-theming in which the theme's read-only store (object with subscribe/unsubscribe) is passed from the theme provider to emotion components via React context.

A quick patch of the changes to preview.jsx made our use cases with emotion work, so we'll likely fork until this fix makes it to master.

ryanswanson avatar Oct 17 '17 21:10 ryanswanson