You are viewing a single comment's thread from:

RE: Unlucky for some... 13k HP for Others; Updates; Keyboard Layouts?

in #hive4 years ago

I meant for DOM updates, not for JS files.

With react, the following code updated to the latest task always:
{this.state.tasks[0] ? this.state.tasks[0].name : ""}<br/>

So no need for me to forcibly update anything. With Vue I had to call this.$forceUpdate(); after any variable update in order for it to redo the DOM and update the values. I have no idea why, and have no intention of using Vue anymore so I don't plan on learning what was wrong with the way I did it.