alejandro-du / vaadin-microservices-demo

A microservices example developed with Spring Cloud and Vaadin
126 stars 63 forks source link

How to use PreserveOnRefresh #8

Closed rob-64 closed 2 years ago

rob-64 commented 3 years ago

I was wondering if you know how to use PreserveOnRefresh with the demo? Seems like Spring session is breaking it?

sombochea commented 3 years ago

I can't using Push too.

rob-64 commented 2 years ago

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 2 years ago

Thanks for sharing the solution!