aforemny / aforemny/elm-mdc

A question about lifting messages

Open
#126 9 comments 0 reactions 0 assignees View on GitHub
documentation pinned
Dominant language
Elm
Stars
352
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Just for my own edification: why have you used the idea of lifting messages (e.g.``` lift << Mdc```) instead of using ```Html.map``` and ```Cmd.map``` in the Elm file that contains the component?

In ```Material.elm``` you wrote:

> - `Material.Model` and `Material.Msg` have to know your top-level message type
> `Msg` for technical reasons.

Can you give me some insight into those technical reasons? I've followed your practice, and I'd just like to understand the pattern better.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.