Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

adding componentDidUpdate #16

Closed
wants to merge 1 commit into from

Conversation

andrewarrow
Copy link

fixes #15

@@ -185,7 +185,10 @@ class ReactComponentWrapper<K, P : RProps, S : RState>(var props: P, val updater
}

@JsName("componentDidUpdate")
fun componentDidUpdate(prevProps: P, prevState: S) {
fun componentDidUpdate(prevProps: RProps, prevState: RState) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why had you changed generic types to exact ones?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only way I could get it to compile. But feel free to change. My only goal was getting that event to fire and it wasn't without this change.

@cy6erGn0m
Copy link
Contributor

Merged manually, thanks!

@cy6erGn0m cy6erGn0m closed this Oct 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReactExtensions.kt needs more work for componentDidUpdate
2 participants