Reputation: 5775
I was under the impression that views should not be constructed before the Login event occurs.
I am starting migrating from vaadin 8 straight to vaadin 14 rc4. I am not using CDI yet. Is this a bug or something is not properly configured? This happens in the beverage UI plain java starter.
The views are thus instantiated twice. Its the second instance the one that gets attached to the UI.
Upvotes: 0
Views: 225
Reputation: 4275
Vaadin 14 doesn't listen to login events internally. If you want to delay the initialization of views, you can register them dynamically; see more here: https://vaadin.com/docs/v13/flow/routing/tutorial-router-dynamic-routes.html
Upvotes: 1