Re: [elm-discuss] Passing whole state to each view function

2017-06-24 Thread Max Goldstein
Great points, Mark!

I came across this r/elm thread 
 and they 
conclude that Html.lazy only skips a computation if the argument is 
*referentially* equivalent to some previous value. If true, this would 
invalidate the *toView* approach in Mark's first post on this thread.

I think this suggests having viewstate already split out in the model, i.e. 
a record or records. Then you pass each smaller record to a view function. 
But the idea of defining your model in a way to make your view functions 
more performant is not a pleasant one.

-- 
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.


[elm-discuss] Re: Rails integrations issues

2017-06-24 Thread Max Goldstein
Assuming that works as described, you should think about sending a PR upstream. 

-- 
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.