We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've encountered an issue with Resium in StrictMode on the following Resium versions:
Resium will duplicate KML while in StrictMode.
These are the steps I used to replicate the issue.
npx create-react-app test-resium-duplication --template typescript
test-resium-duplication
npm install --save @craco/craco craco-cesium cesium resium@1.17.1
craco
App.tsx
function App() { const kmlBlob = new Blob([ '<kml xmlns="http://earth.google.com/kml/2.1"><GroundOverlay><color>55ffff</color><name>Region</name><LatLonBox><north>45</north><south>25</south><east>-80</east><west>-100</west></LatLonBox></GroundOverlay></kml>' ]) return ( <Viewer> <KmlDataSource data={kmlBlob} /> </Viewer> ); }
App > Viewer > Context.Provider
props > value > viewer > _dataSourceCollection > _dataSources
_dataSources
React.StrictMode
The text was updated successfully, but these errors were encountered:
+1 for this!
I am getting an entire duplication of the <Viewer></Viewer> component when using React.StrictMode on a brand new project.
<Viewer></Viewer>
Sorry, something went wrong.
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
onLayerAdd
ImageryLayerCollection
Successfully merging a pull request may close this issue.
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
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:The text was updated successfully, but these errors were encountered: