mirror of
https://github.com/ouchadam/small-talk.git
synced 2025-02-16 12:10:45 +01:00
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()
|
val state = getState()
|
||||||
if (state.page.state::class != action.page.state::class) {
|
if (state.page.state::class != action.page.state::class) {
|
||||||
dispatch(PageStateChange.ChangePage(previous = state.page, newPage = action.page))
|
dispatch(PageStateChange.ChangePage(previous = state.page, newPage = action.page))
|
||||||
|
} else {
|
||||||
|
dispatch(PageStateChange.UpdatePage(action.page.state))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user