vaadin / hilla

Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
https://hilla.dev
Apache License 2.0
864 stars 58 forks source link

Warning when adding a new route #2551

Open Artur- opened 2 weeks ago

Artur- commented 2 weeks ago

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