Skip to content

Update depth exceeded in game instance editor #1959

@TehAwol

Description

@TehAwol

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:

  • Create a game (react) instance as trainer and go into scenarist mode on it
  • Run any form of script in either console or try to save new lines into the src editor
  • Enjoy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions