Skip to content

Commit 3c251d3

Browse files
committed
subscription drafts
1 parent e47a5c3 commit 3c251d3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Fabulous/Program.fs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ module Program =
120120

121121
//TODO In what scenario would I want to use this?
122122
/// 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>
123129
let mapSubscription map (program: Program<'arg, 'model, 'msg>) =
124130
{ program with
125131
Subscribe = map program.Subscribe }

0 commit comments

Comments
 (0)