How to use PreserveOnRefresh
rob-64 opened this issue · 3 comments
rob-64 commented
I was wondering if you know how to use PreserveOnRefresh with the demo? Seems like Spring session is breaking it?
sombochea commented
I can't using Push too.
rob-64 commented
Way late response, but the issue ended up being NavigationEvent is getting serialized and the source is being lost..
if u override the class:
@Override public Router getSource() { Router source = (Router) super.getSource(); if (source == null) { source = VaadinService.getCurrent().getRouter(); } return source; }
alejandro-du commented
Thanks for sharing the solution!