Skip to content

What is a Stanza?

A Stanza is an Effect (or Effect sub-type, such as Stream) which dispatches its result(s) to the Redux Sonnet middleware.

Sonnet instantiations take a root stanza in a similar manner to how Redux Saga accepts a root saga or how redux-observable requires a root epic.

The type of a Stanza is as follows:

declare const
const stanza: Stanza.Stanza<R>
stanza
:
import Stanza
Stanza
.Stanza<
type R = /*unresolved*/ any
R
>
interface Stanza<R = never>

A Stanza is an Effect that produces void, never fails, and requires the SonnetService.

@since0.0.0

A Stanza is simply an Effect which can never fail and de facto requires provisioning of the SonnetService to facilitate coordination with Redux.