Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-6539

Gallery block sometimes crashes in the editor because of an infinite loop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Must have Must have
    • None
    • None
    • 3
    • Block: Gallery

      Sometimes a Gallery block doesn't display in the editor because of an error. React indicates the max amount of renders was reached, so the block is getting in an infinite loop. React links to this page for the error: https://reactjs.org/docs/error-decoder.html/?invariant=301 

      This is probably because "setAttributes" is called in render.

      For example on https://www-dev.greenpeace.org/test-neptune/wp-admin/post.php?post=19904&action=edit 

       

            Unassigned Unassigned
            pvincent Pieter Vincent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: