This PR adds a clearEventHandlers method to the AppState api. This allows the handlers to be removed in test scenarios where the removeEventListener method is not being called reliably.
Additionally the ScrollRenderer will remove its listeners when it unmounts.
This PR adds a
clearEventHandlers
method to theAppState
api. This allows the handlers to be removed in test scenarios where theremoveEventListener
method is not being called reliably.Additionally the
ScrollRenderer
will remove its listeners when it unmounts.