Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    React error when component with map unmounts

    Windy API v4
    1
    1
    44
    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
      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 0
      • First post
        Last post
      Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
      NodeBB & contributors, OSM & contributors, HERE maps
      Terms and Conditions     Privacy Policy