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
results in creation of a new UI each time the Route is changed
As soon as I disable either @PreserveOnRefresh or liveReload, then the issue disappears: no new UI is created on Route change.
Since disabling @PreserveOnRefresh is out of the question, it remains only to disable liveReload: -Dvaadin.devmode.liveReload.enabled=false
in order for the issue to go away.
The issue is not present in Vaadin versions lower than 14.3.2 (e.g. 14.3.1, 14.3.0) The issue is not present in Production Mode in any of the above mentioned versions.
This can be reproduced with the following starter: Simple App: preserve-on-refresh.zip
I only modified it to be able to add logging to see the effects.
Just start it up: mvn jetty:run
navigate to different Routes and you will see the following output:
INFO: CustomUIInitListener#uiInit: initializing new UI: 0
Aug 06, 2020 7:13:00 PM com.prsrefresh.bookstore.CustomUIInitListener uiInit
INFO: CustomUIInitListener#uiInit: initializing new UI: 1
Aug 06, 2020 7:13:36 PM org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 6.0.16.Final
Aug 06, 2020 7:13:36 PM com.prsrefresh.bookstore.CustomUIInitListener uiInit
INFO: CustomUIInitListener#uiInit: initializing new UI: 2
Aug 06, 2020 7:13:47 PM com.prsrefresh.bookstore.CustomUIInitListener uiInit
INFO: CustomUIInitListener#uiInit: initializing new UI: 3
Aug 06, 2020 7:13:49 PM com.prsrefresh.bookstore.CustomUIInitListener uiInit
INFO: CustomUIInitListener#uiInit: initializing new UI: 4
Aug 06, 2020 7:14:27 PM com.prsrefresh.bookstore.CustomUIInitListener uiInit
INFO: CustomUIInitListener#uiInit: initializing new UI: 5
Aug 06, 2020 7:14:30 PM com.prsrefresh.bookstore.CustomUIInitListener uiInit
INFO: CustomUIInitListener#uiInit: initializing new UI: 6
- Vaadin / Flow version: 14.3.2 / 2.3.2
- Java version:1.8
- OS version:
- Browser version (if applicable):
- Application Server (if applicable):
- IDE (if applicable):
The text was updated successfully, but these errors were encountered:
Hi,
The following scenario:
-Dvaadin.devmode.liveReload.enabled=true
@PreserveOnRefresh
: enabledresults in creation of a new UI each time the Route is changed
As soon as I disable either @PreserveOnRefresh or liveReload, then the issue disappears: no new UI is created on Route change.
Since disabling @PreserveOnRefresh is out of the question, it remains only to disable liveReload:
-Dvaadin.devmode.liveReload.enabled=false
in order for the issue to go away.
The issue is not present in Vaadin versions lower than 14.3.2 (e.g. 14.3.1, 14.3.0)
The issue is not present in Production Mode in any of the above mentioned versions.
This can be reproduced with the following starter: Simple App:
preserve-on-refresh.zip
I only modified it to be able to add logging to see the effects.
Just start it up:
mvn jetty:run
navigate to different Routes and you will see the following output:
The text was updated successfully, but these errors were encountered: