O'Reilly logo

Flux Architecture by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stateful action creators

The action creator functions we've looked at so far in this chapter have been relatively simple—they dispatch some action when called. But before that happens, these action creators will typically reach out to some API endpoint to retrieve some data, then dispatch the action, using the data as the payload. These are called stateless action creator functions because there's no intermediary state about them—no lifecycle in other words.

In this section, we'll think about things that are stateful and how we might go about integrating these into our Flux architecture. Another challenge we could face is integrating our Flux application into another architecture. First, we'll cover some basic ground on stateful action creators, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required