Doesn’t work after refreshing (ctrl + f5) the Page if the @PreserveOnRefresh annotation is present on the @Route(‘’) layout.
Please fix it, in other terms this addon is amazing.
Doesn’t work after refreshing (ctrl + f5) the Page if the @PreserveOnRefresh annotation is present on the @Route(‘’) layout.
Please fix it, in other terms this addon is amazing.
Im gonna take a look at this some time soon:
https://gitlab.com/gsedlacz/tooltips4vaadin/-/issues/32
I looked into the issue and it is reproduceable.
Unfortunately @PreserveOnRefresh works by creating a new UI and moving Elements that are part of a preserved @Route (or RouterLayout) to it.
see: [Official Documentation]
(https://vaadin.com/docs/v14/flow/advanced/tutorial-preserving-state-on-refresh/#preconditions-and-limitations)
This plugin on the other hand memorizes configurations by associating them with the UI of the Component.
I did not find any easy way to get notified if Component switches UIs.
Therefore this issue requires some fundamental changes which I cant guarantee to happen any time soon.
Best Regards
Despite initial concerns regarding the need to reimplement a large part of the plugin I started a work in progress implementation.
https://gitlab.com/gsedlacz/tooltips4vaadin/-/tree/version_2
It still needs some further testing but appears to work with @PreserveOnRefresh.
Best Regards