redux-kotlin icon indicating copy to clipboard operation
redux-kotlin copied to clipboard

Subscribing to substates

Open DarioAhdoot opened this issue 5 years ago • 3 comments

It doesn't seem possible to be able to subscribe the state change of a specific value or sub-state. Do you have any plans to add this feature?

DarioAhdoot avatar Jan 28 '20 14:01 DarioAhdoot

That was been deliberately left out of the core lib. Goal of this repo is to provide just the core functionality of the Redux pattern. Additional libs, middleware, enhancers can add functionality.

There is a port of Reselect library which allows memoized subscriptions to substates https://github.com/reduxkotlin/Reselect I plan to do some work to that lib and this one once kotlin 1.3.7 is released

patjackson52 avatar Jan 28 '20 14:01 patjackson52

Awesome. Thanks for the quick reply. And kinda glad to hear this project hasn't been abandoned. It's kinda the only game in town for Redux on Android

DarioAhdoot avatar Jan 28 '20 15:01 DarioAhdoot

Hey @patjackson52 I wasn't able to get Reselect to work at all. Has it been tested lately?

DarioAhdoot avatar Feb 04 '20 08:02 DarioAhdoot