WithContext
version of Html.Styled.Lazy
.
Rather than immediately applying functions to their arguments, the lazy functions just bundle the function and arguments up for later. When diffing the old and new virtual DOM, it checks to see if all the arguments are equal by reference. If so, it skips calling the function!
See Html.Lazy for detail.
lazy : (context -> a -> Html.Styled.Html msg) -> a -> WithContext context msg
Similar to fromHtml
but this function does some sort of performance optimization that delays the building of virtual DOM nodes.
lazy2 : (context -> a -> b -> Html.Styled.Html msg) -> a -> b -> WithContext context msg
Same as lazy
, but checks on two arguments.
lazy3 : (context -> a -> b -> c -> Html.Styled.Html msg) -> a -> b -> c -> WithContext context msg
Same as lazy
, but checks on three arguments.
lazy4 : (context -> a -> b -> c -> d -> Html.Styled.Html msg) -> a -> b -> c -> d -> WithContext context msg
Same as lazy
, but checks on four arguments.
lazy5 : (context -> a -> b -> c -> d -> e -> Html.Styled.Html msg) -> a -> b -> c -> d -> e -> WithContext context msg
Same as lazy
, but checks on five arguments.
lazy6 : (context -> a -> b -> c -> d -> e -> f -> Html.Styled.Html msg) -> a -> b -> c -> d -> e -> f -> WithContext context msg
Same as lazy
, but checks on six arguments.