Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    React error when component with map unmounts

    Scheduled Pinned Locked Moved Windy API v4
    1 Posts 1 Posters 522 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      athDimas
      last edited by

      I am developing an SPA react app.
      in dashboard I have a component with windy map
      if you change path another component will mount because of react-router and the previous(with the map) will unmount

      After this action I have countless errors:
      lib.js:102 Uncaught TypeError: Cannot read property 'bindFramebuffer' of null
      at e.bindFramebuffer (lib.js:102)
      at NewClass.updateFrame (gl-particles.js:2)
      at h (gl-particles.js:6)

      As I can see in this file we have an async function that never stops.

      Any suggestions??
      reloading page could prevent from getting these errors but after I will not have an SPA

      map created with react-windy-leaflet

      1 Reply Last reply Reply Quote 1
      • First post
        Last post
      Windy Community  |  Powered by excellent NodeBB
      Terms of Use     Privacy Policy     Windy.com