Skip to content

Commit 595d570

Browse files
Only call element.on when the merchant passes in a callback (#372)
* Only attach callbacks the merchant defines * Update tests * Adds element as a dependency to useAttachEvent * Prevent .on and .off from being called on every render * Unit test based on repro * Comment * Remove no-op
1 parent 60f0a71 commit 595d570

File tree

4 files changed

+350
-253
lines changed

4 files changed

+350
-253
lines changed

0 commit comments

Comments
 (0)