I was working on Events of a navigation component
but lots of events of the navigation component still linger even though I removed the corresponding event / code.
Could you help me figure out how to remove it?
I am on Cloud and I've had this issue on this specific component for over a month but since there has been no tech issue with that, I just let it stay like that.
Using "Manual Mode" I am able to add event handlers and remove them with the state reflecting the changes:
Adding four event handlers:
After removing two:
With "Mapped Mode" I have the same results with one exception:
If the event handlers were added on "Manual" mode, then switched to "Mapped", the former event handlers will not be automatically removed.
When we remove the events on "Mapped", the state still updates but the ones added on the other mode will linger, and vice versa. Could you check if there are some events that were added on a different mode?
If this is not the case, could you try duplicating the component and see if the issue goes away? I'm unable to repro this bug, but I'm happy to dig deeper.