vaadin / quarkus

An extension to Quarkus to support Vaadin Flow
Apache License 2.0
28 stars 3 forks source link

Fronted live reload (webpack) stops working after Quarkus live reload restarts the application #71

Open mcollovati opened 2 years ago

mcollovati commented 2 years ago

When running quarkus in dev mode, if a Java source code is modified the application gets restarted, but after restart, frontend live reload does not work anymore.

Reason seems to be that, on restart a new WebpackHandler and a new DebugWindowConnection instances are created, but since Vaadin dev-server (webpack) is still running, the DevServerOutputTracker is not recreated, and the old instance triggers reload on the wrong DebugWindowConnection.

With Vite, reload seems to work fine even after Java code changes.

To replicate: