navigateToApp emits new value for currentAppId$ even if navigation is blocked #132599
Labels
bug
Fixes for quality problems that affect the customer experience
NeededFor:VisEditors
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
On blocking a navigation using
history.block
and trying to navigate away from the current app using thenavigateToApp
method, the navigation is blocked as expected butcurrentAppId$
is updated with the target app id right away. This happens because inkibana/src/core/public/application/application_service.tsx
Line 278 in 9d5aca5
next
is called on the observable without checking for navigation blocks. It can probably be fixed by removing thenext
call askibana/src/core/public/application/application_service.tsx
Lines 152 to 157 in 9d5aca5
currentAppId$
some apps might rely on.The text was updated successfully, but these errors were encountered: