更新时间:2021-07-16 10:49:20
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
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
Chapter 4. Creating Actions
Action names and constants
Feature action creators
Mocking data
Stateful action creators
Parameterized action creators
Chapter 5. Asynchronous Actions
Keeping Flux synchronous
Making API calls
Combining API calls
Returning promises
Chapter 6. Changing Flux Store State
Adapting to changing information
Reducing duplicate store data
Handling store dependencies
View update order
Dealing with store complexity
Chapter 7. Viewing Information
Passing views data
Keeping views stateless
View responsibilities
Using ReactJS with Flux
Chapter 8. Information Lifecycle
Component life cycle difficulties
Flux structures are static
Scaling information
Inactive stores
Chapter 9. Immutable Stores
Renouncing hidden updates
Enforcing unidirectional data flow
The cost of immutable data
Using Immutable.js
Chapter 10. Implementing a Dispatcher
Abstract dispatcher interface
Challenges with the dispatcher
Building a dispatcher module
Improving store registration
Chapter 11. Alternative View Components
ReactJS is a good fit for Flux
The downsides of ReactJS
Using jQuery and Handlebars
Using VanillaJS
Chapter 12. Leveraging Flux Libraries
Implementing core Flux components
Implementation pain points
Using Alt
Using Redux
Chapter 13. Testing and Performance
Hello Jest
Testing action creators
Testing stores
Performance goals
Profiling tools
Benchmarking tools