diff options
author | Tatu Lund <tatu@vaadin.com> | 2020-01-28 16:59:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 16:59:21 +0200 |
commit | ab3d346c56d8ffee70d1b2b6757ec0fd68d270e1 (patch) | |
tree | 29eca30f37e740c62232c4f3a9cdf49a8a0aeaf6 /server | |
parent | 75caa0488dee5b59f37d5691430c01de0b55c2db (diff) | |
download | vaadin-framework-ab3d346c56d8ffee70d1b2b6757ec0fd68d270e1.tar.gz vaadin-framework-ab3d346c56d8ffee70d1b2b6757ec0fd68d270e1.zip |
Update Navigator.getState() JavaDoc to be more accurate (#11876)
Fixes: https://github.com/vaadin/framework/issues/11875
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/navigator/Navigator.java | 5 |
1 files changed, 5 insertions, 0 deletions
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}. + * <p> + * 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. */ |