Open kaiwidmer opened 4 years ago
Hi, I discovered that the function store.select is wrapping a subscribe() in a subscribe() and results into strange behaviour.
IS:
fun <State : Any> Store<State>.select(selector: (State) -> Any, action: (Any) -> Unit): StoreSubscriber { return subscribe( this.selectors { select(selector, action) } ) }
Should:
fun <State : Any> Store<State>.select(selector: (State) -> Any, action: (Any) -> Unit): StoreSubscriber { return this.selectors { select(selector, action) } }
Hi, I discovered that the function store.select is wrapping a subscribe() in a subscribe() and results into strange behaviour.
IS:
Should: