On Wednesday, January 11, 2017 at 6:39:12 PM UTC, Jen-Mei Wu wrote: > > > On Wednesday, January 11, 2017 at 1:54:38 AM UTC-8, Rupert Smith wrote: >> >> So I guess it inserts a data-reactid atrtibute on the node, and the >> vitual dom rendering code uses that to know how to treat it differently. >> > > Yep. It also adds checksums that the client verifies. >
How does that work? Does the client build the section of the dom corresponding to a server side rendered section, then compare the checksums, and only re-create that section of the dom if its checksuming fails? If the checksum passes, and the dom has event handlers on, then it walks down the actual dom and attaches the event handlers? You know, I'm thinking this might be something we could try hacking onto the existing Elm vdom code, and contribute back if it turns out well. Given that we know that React manages to do it, I feel like it is achievable. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
