Be aware that at least in Vaadin 14.0.1, the UI
object is replaced each time you use routing even despite using the new @PreserveOnRefresh
. Ditto for user hitting the browser’s Refresh button. See other recent forum threads for gory details.
You will also find disussion of how to preserve your views between routes.