Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apply plugin: 'kotlin-multiplatform'
archivesBaseName = 'reselect'

group 'org.reduxkotlin'
version '0.2.8'
version '0.2.9'

kotlin {
jvm()
Expand Down Expand Up @@ -61,7 +61,7 @@ kotlin {
commonMain {
dependencies {
implementation kotlin("stdlib-common")
implementation "org.reduxkotlin:redux-kotlin:0.2.4"
implementation "org.reduxkotlin:redux-kotlin:0.2.6"
}
}
commonTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ package org.reduxkotlin
* @property store The redux store
* @constructor creates an empty SelectorSubscriberBuilder
*/
class SelectorSubscriberBuilder<State : Any>(val store: Store) {
class SelectorSubscriberBuilder<State : Any>(val store: Store<State>) {

val selectorList = mutableMapOf<Selector<State, Any>, (Any) -> Unit>()

//state is here to make available to lambda with receiver in DSL
val state: State
get() = store.getState() as State
get() = store.getState()

var withAnyChangeFun: (() -> Unit)? = null

Expand Down