isMounted
isMounted copied to clipboard
Volunteering to add test coverage
If you'd like, I'd be happy to contribute a Jest test of this hook to the repo. Instead of pulling the dependency into a project, we just wrote our own analogous hook. And it was quite easy to add test coverage with React Hooks Testing Library
The functionality is so simple that I understand if you don't want to bother with a test. But maybe it'd help with future changes for new React APIs or improvements for rare edge cases.
In any case, if you'd like a PR to add that test, just let me know 👍
@CodingItWrong Thanks a lot. That would be great 👍