Vaibhav Jaiswal
01/18/2024, 4:31 PMrunCatching {
navigator.pushNew(screen)
}.onFailure {
if (it.message == "Configurations must be unique") navigator.bringToFront(screen)
}
Now I have screens in backstack like A -> B
Now, if i go from B to A, nothing is happening
And when i press back button while being in B, it goes back to A and the whole UI freezes
and if I press back again, the back stack behaves weirdly,Arkadii Ivanov
01/18/2024, 4:43 PMonFailure
callback won't be called at all.
3. The next alpha version of Decompose will introduce pushToFront
function, which is probably what you need?
4. In the meantime you can copy it from here.Vaibhav Jaiswal
01/18/2024, 4:43 PMVaibhav Jaiswal
01/18/2024, 4:45 PMpushNew
?Arkadii Ivanov
01/18/2024, 4:46 PMArkadii Ivanov
01/18/2024, 4:47 PMVaibhav Jaiswal
01/18/2024, 4:57 PMArkadii Ivanov
01/23/2024, 10:24 PMpushToFront
is released in Decompose 3.0.0-alpha05.