Originally by archie172
7.0.0.alpha3
I know Root is gone in beta1 but this bug may still exist in the new UI class due to cut & paste, so I'm filling this bug just in case.
I have a Vaadin application with two Roots: /foo is my application URL, and /foo/a displays RootA while /foo/b displays RootB.
If I load /foo/a in the browser, RootA's attach() method is properly invoked (although it gets invoked prior to init(), which seems completely backwards).
However, if I click on a link to /foo/b (or manually enter /foo/b in the browser location bar), then RootB is successfully constructed and attached, but RootA's detach() method is never invoked.
This causes a memory leak due to non-Vaadin objects associated with RootA.
Imported from https://dev.vaadin.com/ issue #9755
该提问来源于开源项目:vaadin/framework