brianegan / dart_redux_epics

Redux.dart middleware for handling actions using Dart Streams
MIT License
141 stars 22 forks source link

Add onChange stream on EpicStore #17

Closed jnorkus closed 5 years ago

jnorkus commented 5 years ago

https://github.com/brianegan/dart_redux_epics/issues/16

MichaelMarner commented 5 years ago

This LGTM, as it's just making the onChange stream visible to epics. Though I'm not really sure of what the use case for this is.

Merge conflict is because master has also updated the test dependency.

jnorkus commented 5 years ago

This provides access to the store change stream in epics. In complex scenarios sometimes you have to wait for some specific state in the store until you can proceed, e.g. the epic action is fired before some async initialization is done.

brianegan commented 5 years ago

Thanks! If it's useful, I'll add it in. It will be shipped as part of 0.10.2.

Appreciate the contribution :)