Open TMarche opened 11 months ago
+1 for this!
I am getting an entire duplication of the <Viewer></Viewer>
component when using React.StrictMode
on a brand new project.
Bump. Getting the same issue.
+1, same issue.
The issue happens to all layers(?) under Viewer. I was wondering why onLayerAdd
(under ImageryLayerCollection
) was triggered 4 times for every layer
I've encountered an issue with Resium in StrictMode on the following Resium versions:
Resium will duplicate KML while in StrictMode.
Steps to Replicate
These are the steps I used to replicate the issue.
npx create-react-app test-resium-duplication --template typescript
test-resium-duplication
project, runnpm install --save @craco/craco craco-cesium cesium resium@1.17.1
craco
Replace the code in
App.tsx
with the following:App > Viewer > Context.Provider
props > value > viewer > _dataSourceCollection > _dataSources
_dataSources
you will see:React.StrictMode
tags from index.tsx). Under_dataSources
you will see: