MappedDispatch<Msg> extension

on

Methods

consume(Cmd<Msg> cmd) → void

Available on Dispatch<Msg>, provided by the MappedDispatch extension

This helper function can be used in different scenarios where you have a Cmd and need to process them using an available dispatch in the context.
map<InnerMsg>(Msg mapper(InnerMsg inner)) Dispatch<InnerMsg>

Available on Dispatch<Msg>, provided by the MappedDispatch extension

This helper function can be used when going from a parent view to a child view.