We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@:state title:String = ''; function render() '<input onchange=${e -> title = e.src.value}/>';
ref:facebook/react#955 (comment)
Seems that setState has to be called in the onchange event handler to prevent that. I guess coconut does an async render so that is not the case...
setState
The text was updated successfully, but these errors were encountered:
Current workaround is to force a sync render right inside the onchange callback, by running Renderer.updateAll()
onchange
Renderer.updateAll()
Sorry, something went wrong.
Hmm, alternatively forceUpdate in the view itself might also work - depending on react version.
forceUpdate
Seems not working. I guess because coconutRender hasn't yet run to update the vdom.
?synchronous = false
No branches or pull requests
ref:facebook/react#955 (comment)
Seems that
setState
has to be called in the onchange event handler to prevent that.I guess coconut does an async render so that is not the case...
The text was updated successfully, but these errors were encountered: