On Tuesday, February 28, 2017 at 6:40:36 PM UTC, Richard Haven wrote:
>
> My understanding is that the Elm should create the entire DOM every time, 
> and the runtime will do the diff and change the parts that need changing.
>

Yes, this is my understanding too. The virtual DOM is built each time the 
'view' function is evaluated, then some internal code in the runtime diffs 
this with the page and tries to update the page as efficiently as it can. 
What I am trying to figure out is when will a diff actually be detected and 
applied? 

The content inside my div is changing, does that also cause the parent div 
to be completely replaced? Weirdly it was working before with the same 
structure, but not now, so the conditions under which it happens are not 
very clear.

Perhaps even if they are clear, it is not a good idea to rely on knowing 
them; the diffing algorithm may change.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to