react-svg-morph
react-svg-morph copied to clipboard
Breaks use of context
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 SvgIcon
s 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?
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