File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 1212![ badge] [ badge-mac ]
1313![ badge] [ badge-wasm ]
1414
15- A Redux Reselect implementation for memoized dispatch on state selectors.
15+ A Redux Reselect implementation for memoized dispatch on state selectors. Forked from [ Reduks] ( https://github.com/beyondeye/Reduks ) implementation.
16+
17+ Documentation to come.
18+
19+ Example usage:
20+
21+ ```
22+ val subscriber: StoreSubscriber = SelectorSubscriberFn<AppState>(store) {
23+ withSingleField({ it.isLoadingItems }) { <-- only called when isLoadingItems changes from previous state.
24+ if (state.isLoadingItems) {
25+ view?.showLoading()
26+ } else {
27+ view?.hideLoading()
28+ }
29+ }
30+
31+ store.subscribe(subscriber)
32+
33+ ```
1634
1735__ How to add to project:__
1836
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ def pomConfig = {
1616 }
1717
1818 scm {
19- url " https://github.com/reduxkotlin/redux-kotlin-reselect "
19+ url " https://github.com/reduxkotlin/Reselect "
2020 }
2121}
2222
2323project. ext. configureMavenCentralMetadata = { pom ->
2424 def root = asNode()
2525 root. appendNode(' name' , project. name)
2626 root. appendNode(' description' , ' Reselect implementation for ReduxKotlin.' )
27- root. appendNode(' url' , ' https://github.com/reduxkotlin/redux-kotlin-reselect ' )
27+ root. appendNode(' url' , ' https://github.com/reduxkotlin/Rselect ' )
2828 root. children(). last() + pomConfig
2929}
You can’t perform that action at this time.
0 commit comments