Comments (4)
I think the reason behind this is that when you unmount and remount your component you're essentially instantiating a new Globe but not destroying nor cleaning up the data for the old one. This makes the new Globe think that the dataset is already attached to the Globe (it is still to the old one in fact), and bypasses it.
Are you able to invoke globe.arcsData([])
(cleans the dataset bindings) before letting go of the previous globe? And ideally globe._destructor()
too, to liberate any memory associated to the internal geometries.
from three-globe.
@vasturiano maybe do it in the useEffect clean up function before unmounting? I was also unaware of the _destructor
method. Ill give that a whirl. Great project btw super cool stuff!
from three-globe.
doesnt seem to show me an option for that method. Im using typescript so its complaining it doesn't exist
from three-globe.
@rohanbhangui just added the type for the _destructor
method.
from three-globe.
Related Issues (20)
- Bug: component destructor leaves animationFrame running HOT 2
- [Question] How to position camera base on the first Lat and Long? HOT 2
- Bug: FrameTicker doesn't get disposed HOT 1
- Bug: destructor cleanup HOT 2
- Overriding createGlowMesh to be a flat colour instead of glowing effect? HOT 3
- Globe Always Starts on Africa HOT 4
- able to add texture/materials to lines (or line-like things)
- Webpack error with your latest version 2.25.5 HOT 4
- How to Use an Image for Hex Materials on the Globe
- Import error message for '@tweenjs/tween.js' while using typescript. HOT 10
- Examples don't work "Error resolving module specifier βthreeβ." HOT 2
- Globe view as plane view. HOT 1
- "Window is not defined" error when extending on NextJS. HOT 2
- changing globe image HOT 1
- arcColor: Color replication issue since 2.29.0 HOT 5
- Attach Clouds to initial Globe animation HOT 5
- select a polygon HOT 2
- Is it possible to to easily get the position of the mesh representing the satellite HOT 9
- Arcs disappear when parts of globe is out of frame when inside PMDRS/Drei Portal View HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from three-globe.