Created
October 4, 2019 14:45
-
-
Save nolimits4web/b3e543ddf9de74308a75a1963a473fd5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.$setState({foo: 'bar'}); | |
this.$setState({john: 'doe'}); | |
this.$tick(() => { | |
// DOM updated | |
}); | |
// Or with callback | |
this.$setState({foo: 'bar'}, () => { | |
// DOM updated | |
}); | |
// or with promise | |
this.$setState({foo: 'bar'}).then(() => { | |
// DOM updated | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment