Skip to content
Discussion options

You must be logged in to vote

Hey @notcome! Conflating Effect with Publisher<_, Never> is a byproduct of Effect being based on Publisher. Ideally, your dependencies should produce some Publisher<Output, Failure>. In other words, the dependency doesn't produce an Effect, it produces a Publisher of events. Your reducer can then use this publisher to transform this sequence of events into a sequence of Actions (that is, an Effect). You can't really read values from an Effect because an Effect isn't strictly speaking something that produces values1. This is something that is expressed by the Store.

Once you keep this dichotomy in mind, the conversion is simple: The publisher of events becomes an async sequence of events, …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@notcome
Comment options

@tgrapperon
Comment options

@notcome
Comment options

Answer selected by notcome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants