https://media0.giphy.com/media/mUiRhlQ2iMSOI/source.gif
graph TD
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
Keep Component state in both System and WW, on execute(), diff WW and system state, only transfer diff update to WW
Have a Job Manager that queues up work, resyncs Entities, resolves System dependency graphs
export class Component {
_data: any
modified: boolean
constructor(data?: any){
this.data = data
this.modified = false
}
get data(){
return this._data
}
set data(data){
this._data = data
this.modified = true
}
}