coverpage
Credits
Flux Architecture
About the Author
About the Reviewer
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. What is Flux?
Flux is a set of patterns
Flux isn't another framework
Flux solves conceptual problems
Flux components
Installing the Flux package
Summary
Chapter 2. Principles of Flux
Challenges with MV*
Unidirectional data
Explicit over implicit
Layers over hierarchies
Application data and UI state
Summary
Chapter 3. Building a Skeleton Architecture
General organization
Information design
Putting stores into action
Stores and feature domains
Bare bone views
End-to-end scenarios
Summary
Chapter 4. Creating Actions
Action names and constants
Feature action creators
Mocking data
Stateful action creators
Parameterized action creators
Summary
Chapter 5. Asynchronous Actions
Keeping Flux synchronous
Making API calls
Combining API calls
Returning promises
Summary
Chapter 6. Changing Flux Store State
Adapting to changing information
Reducing duplicate store data
Handling store dependencies
View update order
Dealing with store complexity
Summary
Chapter 7. Viewing Information
Passing views data
Keeping views stateless
View responsibilities
Using ReactJS with Flux
Summary
Chapter 8. Information Lifecycle
Component life cycle difficulties
Flux structures are static
Scaling information
Inactive stores
Summary
Chapter 9. Immutable Stores
Renouncing hidden updates
Enforcing unidirectional data flow
The cost of immutable data
Using Immutable.js
Summary
Chapter 10. Implementing a Dispatcher
Abstract dispatcher interface
Challenges with the dispatcher
Building a dispatcher module
Improving store registration
Summary
Chapter 11. Alternative View Components
ReactJS is a good fit for Flux
The downsides of ReactJS
Using jQuery and Handlebars
Using VanillaJS
Summary
Chapter 12. Leveraging Flux Libraries
Implementing core Flux components
Implementation pain points
Using Alt
Using Redux
Summary
Chapter 13. Testing and Performance
Hello Jest
Testing action creators
Testing stores
Performance goals
Profiling tools
Benchmarking tools
Summary
Chapter 14. Flux and the Software Development Lifecycle
Flux is open to interpretation
Development methodologies
Borrowing ideas from Flux
Packaging Flux components
Summary
Index
更新时间:2021-07-16 10:49:20