Skip to content

Commit

Permalink
Fix typo in 04-Lifecycles-Subscriptions.md (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
goertzenator committed Aug 28, 2020
1 parent c9503db commit 8e6c567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/04-Lifecycles-Subscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Event sources are usually created with one of these functions:
1. `effectEventSource` and`affEventSource` let you produce an event source from an `Effect` or `Aff` function, respectively.
2. `eventListenerEventSource` lets you produce an event source by attaching an event listener to the DOM, like attaching a resize event to the browser window.

An event source can be thought of as a stream of actions: actions can be produced at any time from the event source, and your component will evaluate those actions so long as it remains subscribed to the event source. It's common to use create an event source and subscribe to it when the component initializes, though you can subscribe or unsubscribe from an event source at any time.
An event source can be thought of as a stream of actions: actions can be produced at any time from the event source, and your component will evaluate those actions so long as it remains subscribed to the event source. It's common to create an event source and subscribe to it when the component initializes, though you can subscribe or unsubscribe from an event source at any time.

Let's see two examples of event sources in action: an `Aff`-based timer that counts the seconds since the component mounted and an event-listener-based stream that reports keyboard events on the document.

Expand Down

0 comments on commit 8e6c567

Please sign in to comment.