Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement