Closed cszczepaniak closed 3 years ago
Merging #84 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #84 +/- ##
=======================================
Coverage 71.73% 71.73%
=======================================
Files 73 73
Lines 3849 3849
=======================================
Hits 2761 2761
Misses 870 870
Partials 218 218
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2ad66c2...f63af29. Read the comment docs.
@joshprzybyszewski now the drawer stays open while the user's mouse is hovering over it 👀
What broke / What you're adding
How you did it
React hooks are awesome
useEffect
hook along withsetTimeout
to delay the drawer closing. We can leverageuseEffect
's optional return (which cleans up the effect) and second argument to make this all work right.useMouseIn
hook to detect when the mouse is inside of the drawerHow to test it and how to try to break it
Play with the drawer and see: