weixin_39927799 2020-11-30 09:01
浏览 0

Roots do not get detach() notifications

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

  • 写回答

18条回答 默认 最新

  • weixin_39927799 2020-11-30 09:01
    关注

    Originally by archie172

    Perhaps this bug is now fixed in 7.0.0.beta4 by the UI heartbeat mechanism?

    评论

报告相同问题?