This weekโs Vue tip is about updating the v-model after change events.
Additionally, this issue includes a JavaScript tip about Promise.race and many other interesting hand-picked news about web development.
Have a great week โ๏ธ
Vue Tip: Update v-model after change events
By default. the v-model syncs with the state of the Vue instance on every input event. The .lazy modifiert changes the v-model to only sync after change events.
JavaScript Tip: Use Promise.race to timeout a promise
The Promise.race() method returns a promise that fulfills or rejects as soon as one of the promises in an iterable fulfills or rejects, with the value or reason from that promise.