From ac6c4e819402a85a63d2bc55fb7f4686bfb3b227 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Thu, 3 Nov 2022 17:21:12 +0000 Subject: [PATCH] updating current page when goto fails due to already being on the same page --- .../src/main/kotlin/app/dapk/st/core/page/PageReducer.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/domains/android/compose-core/src/main/kotlin/app/dapk/st/core/page/PageReducer.kt b/domains/android/compose-core/src/main/kotlin/app/dapk/st/core/page/PageReducer.kt index c4d935d..f84b00a 100644 --- a/domains/android/compose-core/src/main/kotlin/app/dapk/st/core/page/PageReducer.kt +++ b/domains/android/compose-core/src/main/kotlin/app/dapk/st/core/page/PageReducer.kt @@ -68,6 +68,8 @@ private fun

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