Hello! The annotation @UIScope and @SpringComponent are on the page class. I use lazy loading from a backend for a grid:
DataProvider<Request, HashMap<String, Object>> dataGridProviderInner = new CallbackDataProvider<>(
q -> requestService.fetchRequest(q.getOffset(), q.getLimit(), q.getFilter().orElse(null)).stream(),
q -> requestService.getRequestCount(q.getFilter().orElse(null)),
Request::getRequestID
);
dataGridProvider = dataGridProviderInner.withConfigurableFilter();
...
refreshButton.addClickListener(e -> {
...
dataGridProvider.setFilter(filter);
});
I read the data in the grid, go to another page. After I return to the page with the grid and expect the data in the grid to remain the same, but the grid is completely reloaded and positioning on the line disappears. Is it possible to somehow turn off the reloading of lines in the grid when returning to the page? When using the setItems method, no reloaded occurs.