updating current page when goto fails due to already being on the same page

This commit is contained in:
Adam Brown 2022-11-03 17:21:12 +00:00
parent 718fb681c3
commit ac6c4e8194
1 changed files with 2 additions and 0 deletions

View File

@ -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))
}
},