What is Influx architecture and when to use it
masterInflux is a transitional architecture that allows a project to coexist with both Flux and Redux state management systems. It enables an incremental migration by allowing Flux components and Redux (Connected) components to communicate with the same store.
When to use Influx
Use Influx if you are performing a large-scale refactor and are not confident in your ability to transition directly from Flux to Redux. It allows you to split the effort into tangible subtasks, such as updating stores to Redux without immediately updating all UI components.
Pros and Cons
- Pros: Enables incremental updates; allows updating state systems without being blocked by UI component refactors (like moving to
UiComponent2); reduces complexity of massive merges/code reviews. - Cons: Requires two refactors instead of one; provides no performance gains until the transition is complete; adds boilerplate and complexity to the state architecture.