UI/View caching problem - Vaadin 10+

Hello,

in my use-case I have a main-view and two sub-views which are reachable via navigation menu in the main-view. On the first view i edit data which is than saved to a database. In the second view this data is simple shown (loaded from the database).

My problem appears when i do the following:

  1. open second view
  2. open first view and edit data
  3. open second view → Problem: edited data from 2. is not visible
  4. press page reload on second view
  5. data is now visible on second view

Is there some kind of setting where i can disable any cashing on my view?

You probably want to use an AfterNavigationObserver to update the data; see https://vaadin.com/docs/v12/flow/routing/tutorial-routing-lifecycle.html .

-Olli