From ab3d346c56d8ffee70d1b2b6757ec0fd68d270e1 Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Tue, 28 Jan 2020 16:59:21 +0200 Subject: [PATCH] Update Navigator.getState() JavaDoc to be more accurate (#11876) Fixes: https://github.com/vaadin/framework/issues/11875 --- server/src/main/java/com/vaadin/navigator/Navigator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/main/java/com/vaadin/navigator/Navigator.java b/server/src/main/java/com/vaadin/navigator/Navigator.java index fc22b19c3b..e7dc389d1e 100644 --- a/server/src/main/java/com/vaadin/navigator/Navigator.java +++ b/server/src/main/java/com/vaadin/navigator/Navigator.java @@ -900,6 +900,11 @@ public class Navigator implements Serializable { /** * Returns the current navigation state reported by this Navigator's * {@link NavigationStateManager}. + *

+ * When the navigation is triggered by the browser (for example by pressing + * the back or forward button in the browser), the navigation state may + * already have been updated to reflect the new address, before the + * {@link #navigateTo(String)} is notified. * * @return The navigation state. */ -- 2.39.5