Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Breaks use of context #2

Open
neverfox opened this issue Nov 28, 2015 · 1 comment
Open

Breaks use of context #2

neverfox opened this issue Nov 28, 2015 · 1 comment

Comments

@neverfox
Copy link

If you have elements that expect to get context (e.g. theming), this is broken by wrapping them in MorphReplace. For example, I tried to use this with two SvgIcons from material-ui (which relies on a context-based theming model) and their context ends up undefined. Is there a way to make MorphReplace etc. "invisible", by ensuring that context gets passed through to the children as if it wasn't there?

@gorangajic
Copy link
Owner

I have tried to fix this but it's not that trivial, so not sure when will be able to tackle this again.

It's broken because I am not sure how to use existing context and pass to react-render-to-json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants