The usage method of this API is wx.nextTick(function callback).
Component({doSth() {this.setData({ number: 1 }) // Executed directly within the current synchronous processwx.nextTick(() => {this.setData({ number: 3 }) // Executed after the current synchronous process ends, in the next time slice.})this.setData({ number: 2 }) // Executed directly within the current synchronous process}})
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback