Skip to content

Resource browser ProjectListener race condition #5595

@Tiggles

Description

@Tiggles

The ResourceBrowser-component adds a project listener on mount (some exceptions where it doesn't) and removes it again shortly after unmount using a window. The user can, however, mount another instance of the component that will add the listener in the same slot, followed by the old instance being unmounted and removing that entry.

Something like this

  • addProjectListener("JobBrowse")
  • addProjectListener("JobBrowse")
  • removeProjectListener("JobBrowse")

Solutions:

  • Add unique ID to ResourceBrowser-instance so that it adds an removes, using a key that the different instances don't affect each other
  • Actually run unmount on unmount and not on a delay

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions