Closed oxc closed 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.
unsafeCast<RClass<P>>
I will try to submit a pull request to kotlin-react later, I believe this shoud be fixed in react.rClass
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.
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