FLUTTER ECOSYSTEM

redux_epics

A redux.dart Middleware that helps you perform side effects using Streams

Latest version
0.15.2
30-day downloads
6K
Likes
38
Pub points
160

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

redux_epics is a middleware for the redux.dart state management library that enables handling side effects through reactive streams. It allows developers to manage asynchronous operations, such as API calls or navigation, in a declarative and testable way using Dart's Stream API. By integrating with Redux's dispatch mechanism, it ensures side effects are orchestrated cleanly within the state management flow. This package is particularly useful for complex apps requiring predictable state transitions with external interactions.

Use cases
  • Handling HTTP requests
  • Managing navigation flows
  • Processing user events asynchronously
  • Implementing real-time data updates
  • Synchronizing state with external services
Key features
  • Stream-based side effect handling
  • Integration with redux.dart
  • Declarative effect composition
  • Testable and reusable epics
  • Support for error handling and retries
Suitable for
  • Complex state management needs
  • Apps with heavy async logic
  • Teams preferring functional reactive patterns
  • Projects using redux.dart already
  • Developers seeking clean separation of concerns
Considerations
  • Requires understanding of Streams and Rx
  • Adds complexity for simple apps
  • Needs careful error handling design
  • Limited documentation compared to alternatives
  • Steeper learning curve for beginners
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add redux_epics

Categories

Source repository

Related projects