We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e47a5c3 commit 3c251d3Copy full SHA for 3c251d3
1 file changed
src/Fabulous/Program.fs
@@ -120,6 +120,12 @@ module Program =
120
121
//TODO In what scenario would I want to use this?
122
/// Map existing subscription to external source of events.
123
+ /// <summary>
124
+ /// Converts messages emitted from the existing subscriptions Command of type 'a into a Command of type 'msg.
125
+ /// This is useful for emitting Commands of a uniform type,
126
+ /// like when receiving child messages in a parent-child composition scenario. See
127
+ /// <seealso href="https://elmish.github.io/elmish/docs/parent-child.html" />
128
+ /// </summary>
129
let mapSubscription map (program: Program<'arg, 'model, 'msg>) =
130
{ program with
131
Subscribe = map program.Subscribe }
0 commit comments