I have a problem using calcite-components-react with Vite dev server in HMR mode. The components, when applying changes or even on initial load, seem to get duplicated.
For example, the layerlist as shown here:
The current workaround is destroying the view with view.destroy() in useEffect cleanup, and then doing a full reload when changes are made, this at least assures that the components do not get duplicated, but it defeats the purpose of using HMR.
How it should look like:
There are no problems in production build.
I have re-created a minimal example here:
https://github.com/AndresKasekamp/calcite-arcgis-hmr