This repository was archived by the owner on Feb 23, 2022. It is now read-only.
This repository was archived by the owner on Feb 23, 2022. It is now read-only.
Open
Description
A endless loop that causes a stackoverflow is possible if you write an action that produces the same kind of output as it also consumes as input. Example:
fun sideEffect1(actions : Observable<FooAction>, stateAccessor : StateAccessor<State>) : Observable<FooAction> =
actions
.ofType(FooAction::class.java)
.map { FooAction() } // Endless loop
This reduces a endless loop because output is FooAction
which then is also the input for the same SideEffect
.