updating current page when goto fails due to already being on the same page
This commit is contained in:
parent
718fb681c3
commit
ac6c4e8194
|
@ -68,6 +68,8 @@ private fun <P : Any> createPageReducer(
|
|||
val state = getState()
|
||||
if (state.page.state::class != action.page.state::class) {
|
||||
dispatch(PageStateChange.ChangePage(previous = state.page, newPage = action.page))
|
||||
} else {
|
||||
dispatch(PageStateChange.UpdatePage(action.page.state))
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue