Heigvd / Wegas

A Web Game Authoring System coded in Java and Javascript for rapid development of serious games without programming skills.
https://wegas.albasim.ch
MIT License
28 stars 15 forks source link

Update depth exceeded in game instance editor #1959

Open TehAwol opened 2 months ago

TehAwol commented 2 months ago

When editing a game instance as scenarist, editor related actions provokes a "Maximum update depth exceeded" loop rendering the page unusable after a short while. There seems to be some self referencing state inside a useEffect as specified in the given console error: "Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."

Steps to reproduce: