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
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
Solutions: