Skip to content

Commit 2172559

Browse files
author
Patrick Jackson
committed
update readme
1 parent 81801a7 commit 2172559

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,25 @@
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

gradle/pom.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2323
project.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
}

0 commit comments

Comments
 (0)