ArneHugo
ArneHugo

Reputation: 6509

Does mithril.js use DOM-diffing when you use m.render?

In my previous Q/A, I found that you don't use m.redraw with m.render, which makes sense, but:

In the former case, m.mount might actually be faster than m.render.

Upvotes: 0

Views: 124

Answers (1)

Tivac
Tivac

Reputation: 2573

Mithril will still track what has been mounted to DOM nodes, and it will do vdom diffing for multiple calls to m.render().

Docs on this feature

Upvotes: 3

Related Questions