Open dmitrilc opened 2 years ago
Hey, thanks for the input!
Do you think it would be even more beneficial if we changed it to match your initial expectations to that the menu would be auto-generated based on the routes you define and then you would instead opt-out of that if you want to define the menu by hand?
The classes generated at https://start.vaadin.com/app should contain a short comment in their code to remind developers that usage of RouterLink is needed for the route to show up in the Drawer.
It was a little frustrating after adding custom Views in code only for them to not show up in the Drawer. My expectations were that if I added a custom View, then it should automatically show up in the Drawer.
It took me about 1 hour and 30 minutes of debugging and going back to the tutorial at https://vaadin.com/docs/latest/flow/tutorial/navigation-and-layouts/#defining-view-routes as well as going deep into https://vaadin.com/docs/latest/flow/routing/navigation to find the answer.
The generated MainLayout class contains a lot of custom classes as well, so it took some time to digest.
I have three suggestions to improve the user experience for Vaadin beginners: