hilla
hilla copied to clipboard
Warning when adding a new route
Describe the bug
If you add a route you see
Warning: You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.
and then the page is reloaded
Expected-behavior
The route is added, there is no warning and the page is not reloaded
Reproduction
npm init vaadin
Choose Hilla views
mvn
cp src/main/frontend/views/about-hilla.tsx src/main/frontend/views/about2.tsx
after the app is open
System Info
24.4.3