subroh0508 / kotlin-material-ui

[UNMAINTAINED] Kotlin Wrapper Library of Material-UI
MIT License
74 stars 24 forks source link

[fix]Fix withStyles with RPureComponent #13

Closed oxc closed 4 years ago

oxc commented 4 years ago

I broke my own use-case in #12 :rofl: The change to RComponent breaks compatibility with RPureComponent.

I've switched back to manually calling unsafeCast<RClass<P>>, which works for both.

I will try to submit a pull request to kotlin-react later, I believe this shoud be fixed in react.rClass

oxc commented 4 years ago

For the record, the rClass property has been adjusted in https://github.com/JetBrains/kotlin-wrappers/pull/222 Will provide a pull request once a new version has been released.