Giter Site home page Giter Site logo

Comments (4)

vasturiano avatar vasturiano commented on May 26, 2024

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.

rohanbhangui avatar rohanbhangui commented on May 26, 2024

@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.

rohanbhangui avatar rohanbhangui commented on May 26, 2024

doesnt seem to show me an option for that method. Im using typescript so its complaining it doesn't exist

from three-globe.

vasturiano avatar vasturiano commented on May 26, 2024

@rohanbhangui just added the type for the _destructor method.

from three-globe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.