Class ErrorViewHotswapper

java.lang.Object
com.vaadin.base.devserver.hotswap.impl.ErrorViewHotswapper
All Implemented Interfaces:
VaadinHotswapper

@Priority(100) public class ErrorViewHotswapper extends Object implements VaadinHotswapper
Re-attempts the navigation when hotswap occurs while an error view is displayed. This ensures that fixing a broken class, or adding a missing route, during development retries the navigation to the original location.

The UI is normally refreshed in place. The page is reloaded only when routes exist while the page for a project without routes is shown and Copilot has taken it over: Copilot replaces the page body, so an in-place refresh would render the new view into detached DOM. Without Copilot, that page is refreshed in place like any other error view.

A reload is not used more widely because it is sent to every open browser tab and recreates their UIs, unless they use @PreserveOnRefresh. A refresh reaches only the affected UIs when they all use push; otherwise it is also sent to every open tab, but it only re-navigates each tab in place instead of reloading the page.

For internal use only. May be renamed or removed in a future release.

Since:
25.1