reduxkotlin / redux-kotlin

Redux implementation for Kotlin (supports multiplatform JVM, native, JS, WASM)
https://reduxkotlin.org
MIT License
426 stars 32 forks source link

Subscribing to substates #37

Open DarioAhdoot opened 4 years ago

DarioAhdoot commented 4 years ago

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?

patjackson52 commented 4 years ago

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

DarioAhdoot commented 4 years ago

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 commented 4 years ago

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