Issue: When pressing Escape key, the app makes requests, even when no modals are open.
When holding the key, it becomes a horse race on network tab.
If I understand correctly, this is because of some kind of shared event listener.
Would it be possible to track how many modals are open, and skip requests if there is none?
Alternatively, maybe some kind of throttling, if the first option is not viable.
Issue: When pressing Escape key, the app makes requests, even when no modals are open.
When holding the key, it becomes a horse race on network tab.
If I understand correctly, this is because of some kind of shared event listener.
Would it be possible to track how many modals are open, and skip requests if there is none?
Alternatively, maybe some kind of throttling, if the first option is not viable.