react-pirate icon indicating copy to clipboard operation
react-pirate copied to clipboard

Results 6 react-pirate issues
Sort by recently updated
recently updated
newest added

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.6&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

I'm not sure if something changed in the API for `useEffect`, but I think that, if you omit the second argument, it will re-run the effect on every re-render.

By memoizing the function via `useCallback` within `useInterval`, coupled with the explicit cache of `[]` (meaning that the effect only has an onMount and onUnmount), only a single interval is...

Because of the use of the `[]` cache, only the first function that was passed in would have been used during the unmount process. This ensures that the most recent...

How would you like to do testing of `react-pirate`? My first inclination is to use `jest`, have a sibling file for each hook, e.g. `useMount.test.js`, and within there, make one...

enhancement

This replaces the generalized `Function` with the more explicit `() => void`, which matches the actual API.