https://github.com/Shopify/polaris-react/blob/master/src/components/EventListener/EventListener.tsx but it saves events that are being set in context and merges the callback if appropriate. The goal is to improve performance and prevent cases where one page would have say 3 event listeners for the same event.
Created
February 4, 2019 15:50
-
-
Save kvendrik/76c9f6f56f02b03a454cc71d797f6b18 to your computer and use it in GitHub Desktop.
<SmartEventListener />
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment