hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Warning when adding a new route

Open Artur- opened this issue 8 months ago • 2 comments

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

Artur- avatar Jun 19 '24 08:06 Artur-