liveBook · Manning

Unidirectional data flow

Unidirectional data flow is a pattern in which data, state changes, or updates propagate along defined paths in one direction, without automatic reverse propagation.

How 3 Manning books explain it

Acing the Frontend Interview

One-way data flow propagates application data through an interface hierarchy in a single direction.

How it is used
Structures React state and component communication around predictable parent-to-child updates.
How deep it goes
Explains props, updater functions, reconciliation, prop drilling, and Context API, while deferring detailed state-container architecture.
Examples
Uses nested prop drilling through ChildA, ChildB, and ChildC, then contrasts it with a Context API provider.
What you can do after
Apply it via React props, callbacks, lifted state, Context API, and suitable state-management patterns.

Read how Acing the Frontend Interview explains unidirectional data flow →

Pro Angular 16

One-way data binding is a technique in which data flows from an application value or source to a user-interface representation in a single direction.

How it is used
Carries component values into Angular templates to set displayed content, classes, and styles.
How deep it goes
Explains binding anatomy, expression evaluation, bracket pitfalls, and idempotence; treats event and two-way bindings separately.
Examples
Uses an ngClass div, an omitted-brackets comparison, invalid state-changing expressions, and an interactive product table.
What you can do after
Apply it via Angular template bindings to display component values and diagnose literal-value or state-changing expression mistakes.

Read how Pro Angular 16 explains unidirectional data flow →

The Joy of JavaScript

Unidirectional data flow is an architecture in which data moves in one direction through a system from source to sink.

How it is used
Uses streams and promises to structure application data as one-way pipelines from source to sink.
How deep it goes
Explains Observable flow, laziness, operators, observers, subscriptions, and cancellation, but does not detail operator implementations.
Examples
Demonstrates Observable.of with four words, subscription through next, and explicit unsubscription.
What you can do after
Apply the pattern via Observable, Observer, and Subscription abstractions to create, consume, and stop push-based data flows.

Read how The Joy of JavaScript explains unidirectional data flow →

Also covered in

What to know first

Related concepts

Questions about unidirectional data flow

What is unidirectional data flow?

Unidirectional data flow is a pattern in which data, state changes, or updates propagate along defined paths in one direction, without automatic reverse propagation.

Which Manning books explain unidirectional data flow?

Acing the Frontend Interview, Pro Angular 16 and The Joy of JavaScript.

What should I know before learning unidirectional data flow?

Manning books that teach unidirectional data flow usually introduce functional programming and JavaScript first.

What is the difference between unidirectional data flow and two-way binding?

Unidirectional data flow is a pattern in which data, state changes, or updates propagate along defined paths in one direction, without automatic reverse propagation. Two-way binding is a data-binding relationship in which changes to either of two corresponding values automatically update the other.

What kinds of unidirectional data flow are there?

Kinds of unidirectional data flow include event binding.

What is unidirectional data flow a kind of?

Unidirectional data flow is a kind of data binding. Data binding is a technique that connects application data with a user interface so values or changes can be represented or synchronized between them.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.