TRENDING

TECHNOLOGY NEWS FROM AROUND THE WORLD

→
React Flux in 2014: Why state flows one way from a filter to a table
Software Engineering · 2014
Software Engineering2014

React Flux in 2014: Why state flows one way from a filter to a table

A practical retrospective on Flux, with report filters, late requests and resilient state transitions.

Archive retrospective · Topic year 2014

Yazılımcının GünlüğüPublished: Nov 18, 20263 min read
Reading progress0%

Several independent owners can disagree

A branch selector and a reporting table can both update filtering if the ownership boundary is unclear. The 2014 React blog described Flux as a unidirectional architecture. A user operation becomes an action, a store maintains the state, and the view reads it. The practical benefit is tracing the sequence that caused a displayed result. Contemporary tools can express the same idea with different interfaces.

Prevent a late response from restoring the previous selection

Start loading branch A and select B before A finishes. A late result should not appear under the B heading. Associate each request with a selection or request identity and apply results only when that identity still matters. Loading and error indicators should say which selection they concern. Cancellation helps where available, but the state transition must remain correct when a response has already arrived.

Frontend data and event flowConceptual sketch · summary of the article's technical flow

Keep effects visible

A network request and its possible failures are separate from a state update. Document the fields for selection, pending request and last successful result. If the previous result stays visible while loading, mark that fact. Charts and tables can read the same state so labels and values agree. Avoid giving each visual an unrelated writable copy.

Test both response orders

Reverse which request finishes first and assert that B remains the displayed branch and source of table rows. Simulate a failure and check that retry uses the correct selection. The value of the architecture is being able to reproduce a bad screen as an action sequence and to turn that sequence into a regression test. A familiar pattern name is not a substitute for that evidence.

Take a working example into real usage

A solution is not production-ready merely because a demo works. Test malformed input, access denial, network failure, timeouts, concurrency and retries. Keep API contracts explicit and display actionable errors in the interface. Verify both desktop and mobile layouts. Safe defaults, observability and reproducible tests reduce long-term maintenance cost.

Publish and maintain with measurements

Document the original problem, impacted screens and changed behavior before release. Test database compatibility, permissions and performance. A healthy HTTP response is not enough: validate rendered content and key user journeys. Retain application and data backups so a failed deployment can be rolled back responsibly.

Be the first reader ✎ Write a comment

Comments

No comments yet. Be the first to contribute.

Cameron Hayes

Reading “React Flux in 2014: Why state flows one way from a filter to a table” raised this question for me: a small reproducible performance comparison would help.

Sample editor reply

Editor note: Results can vary by scale. Cost, latency and user experience should be compared together.

Sidney Wood

The learning curve and accessibility also matter for actual users.

Jamie Collins

A practical case study with load testing or a pilot would help establish the trade-offs.

✎ Write a comment

Your first and last name will appear publicly alongside your comment.