-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(useMouseAndTouchTrackers): dependency array (#1612)
* fix(useMouseAndTouchTrackers): dependency array * remove console logs * some improvements * pass references
- Loading branch information
1 parent
ee2a828
commit 59246b6
Showing
5 changed files
with
151 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`utils useMouseAndTouchTracker adds and removes listeners to environment: element change rerender adding events 1`] = ` | ||
[ | ||
[ | ||
mousedown, | ||
[Function], | ||
], | ||
[ | ||
mouseup, | ||
[Function], | ||
], | ||
[ | ||
touchstart, | ||
[Function], | ||
], | ||
[ | ||
touchmove, | ||
[Function], | ||
], | ||
[ | ||
touchend, | ||
[Function], | ||
], | ||
] | ||
`; | ||
|
||
exports[`utils useMouseAndTouchTracker adds and removes listeners to environment: element change rerender remove events 1`] = ` | ||
[ | ||
[ | ||
mousedown, | ||
[Function], | ||
], | ||
[ | ||
mouseup, | ||
[Function], | ||
], | ||
[ | ||
touchstart, | ||
[Function], | ||
], | ||
[ | ||
touchmove, | ||
[Function], | ||
], | ||
[ | ||
touchend, | ||
[Function], | ||
], | ||
] | ||
`; | ||
|
||
exports[`utils useMouseAndTouchTracker adds and removes listeners to environment: initial adding events 1`] = ` | ||
[ | ||
[ | ||
mousedown, | ||
[Function], | ||
], | ||
[ | ||
mouseup, | ||
[Function], | ||
], | ||
[ | ||
touchstart, | ||
[Function], | ||
], | ||
[ | ||
touchmove, | ||
[Function], | ||
], | ||
[ | ||
touchend, | ||
[Function], | ||
], | ||
] | ||
`; | ||
|
||
exports[`utils useMouseAndTouchTracker adds and removes listeners to environment: unmount remove events 1`] = ` | ||
[ | ||
[ | ||
mousedown, | ||
[Function], | ||
], | ||
[ | ||
mouseup, | ||
[Function], | ||
], | ||
[ | ||
touchstart, | ||
[Function], | ||
], | ||
[ | ||
touchmove, | ||
[Function], | ||
], | ||
[ | ||
touchend, | ||
[Function], | ||
], | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters