it's a separate source of truth though. Navigating...
# functional
t
it's a separate source of truth though. Navigating forward is easy by just returning a different state. But how would you navigate backwards? If the backstack is part of the app state a simple function can be written:
fun goBack(state: S) = state.backstack.pop()
. If I can't express all forms of navigation through simple state mutations, I have to use effects again and don't really gain anything