You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider an application that has a BeforeEnterListener that is run on every navigation. Navigation is done using client-side routing.
Consider also that this listener throws an error if the VaadinServletRequest.getCurrent() is null, such as when navigating from a background thread.
Now navigate from a background thread using UI#navigate inside a UI#access call.
Expected outcome
Navigation fails in some way, but other UI#navigate calls will still work in the same UI.
Actual outcome
Navigation fails. Because the exception is also thrown when navigating to the error view, JavaScriptBoostrapUI#navigate is stuck in a state where navigationInProgress is true, and as such, no other attempts at using UI#navigate will work in that UI.
Versions
Vaadin 20.0-SNAPSHOT
Flow 7.0-SNAPSHOT
The text was updated successfully, but these errors were encountered:
Consider an application that has a
BeforeEnterListener
that is run on every navigation. Navigation is done using client-side routing.Consider also that this listener throws an error if the
VaadinServletRequest.getCurrent()
is null, such as when navigating from a background thread.Now navigate from a background thread using
UI#navigate
inside aUI#access
call.Expected outcome
Navigation fails in some way, but other
UI#navigate
calls will still work in the same UI.Actual outcome
Navigation fails. Because the exception is also thrown when navigating to the error view,
JavaScriptBoostrapUI#navigate
is stuck in a state wherenavigationInProgress
is true, and as such, no other attempts at usingUI#navigate
will work in that UI.Versions
Vaadin 20.0-SNAPSHOT
Flow 7.0-SNAPSHOT
The text was updated successfully, but these errors were encountered: