Yarikx/reductor

Side Effects

jQrgen opened this issue · 2 comments

Heya

How can we go about implementing Side Effects using reductor library?

... we probably want that our app has in disk persistence using a DB, and/or we want to add a network layer so we can sync our data to the cloud. This is done by side effects.

The concept is copied from this blogpost

As far as i can see the closest we can get is to subscribe to the store and have side-effects automatically updating firebase in that way.

In Redux definition Reducer is pure function so it can't have side effects. Middleware is used instead.

Take a look at this article for details.

Also you can take a look and android-oriented solution from Cesar Valiente (youtube)

Thanks