4 ms·
> If nothing has changed That's the hard part. The virtual-dom takes care of this for you, but in the case of canvas, you'd have to determine whether or not an
by dandelany 12y ago
> If nothing has changed
That's the hard part. The virtual-dom takes care of this for you, but in the case of canvas, you'd have to determine whether or not anything actually changed, which involves keeping around a previous state and comparing it to the new state. It's certainly doable, but nowhere near as simple as using the virtual-DOM.