react-use
react-use copied to clipboard
feat: add 'remove' method to useSessionStorage
Description
Adds missing remove feature on session storage hook.
Feature was already available for local storage hook.
Adds tests to session storage hook.
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as before)
Checklist
- [X] Read the Contributing Guide
- [X] Perform a code self-review
- [] Comment the code, particularly in hard-to-understand areas
- [X] Add documentation
- [X] Add hook's story at Storybook
- [X] Cover changes with tests
- [X] Ensure the test suite passes (
yarn test) - [X] Provide 100% tests coverage
- [X] Make sure code lints (
yarn lint). Fix it withyarn lint:fixin case of failure. - [X]Make sure types are fine (
yarn lint:types).
Please release ;)