Updated on 2026-08-14
This commit is contained in:
parent
d3d91e3394
commit
638cbc9d23
8 changed files with 6 additions and 8 deletions
|
|
@ -6,9 +6,7 @@ import com.tangem.tap.features.welcome.redux.WelcomeReducer
|
|||
import com.tangem.tap.proxy.redux.DaggerGraphReducer
|
||||
import org.rekotlin.Action
|
||||
|
||||
@Suppress("CanBeNonNullable")
|
||||
fun appReducer(action: Action, state: AppState?): AppState {
|
||||
requireNotNull(state)
|
||||
fun appReducer(action: Action, state: AppState): AppState {
|
||||
if (action is AppAction.RestoreState) return action.state
|
||||
|
||||
return AppState(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue