Sign in Sign up
npm

@ptolemy2002/react-mount-effects

React allows `useEffect(() => {callback()}, [])` to run the callback only on first mount, thus `useEffect(() => callback, [])` only runs on unmounting. However, eslint often complains about this. This library manually suppresses those warnings and exports

Activity

Latest release
7mo ago
Total releases
11
Cadence
~daily
Last 12 months
1

Reach

Stars

Details

License
ISC
First release
Jul 24, 2024
Releases
Version Released
2.1.0 minor
2.0.0 major
1.2.1 patch
1.2.0 minor
1.1.4 patch
1.1.3 patch
1.1.2 patch
1.1.1 patch
1.1.0 minor
1.0.1 patch
1.0.0 initial