Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add useSessionStorage hook #171

Merged
merged 4 commits into from
Jun 20, 2022

Conversation

createdbymahmood
Copy link
Contributor

@createdbymahmood createdbymahmood commented Jun 19, 2022

Hi. This PR is related to #85:

  • adds useEventCallback hook
  • adds useSessionStorage hook
  • wraps useLocalStorage setValue function using useEventCallback

I also need some help to add docs for useSessionStorage.

@createdbymahmood createdbymahmood changed the title add useSessionStorage hook #85 add useSessionStorage hook Jun 19, 2022
@juliencrn
Copy link
Owner

Again, thanks @createdbymahmood. 👏
This hook was wanted! (#85)

I've just added a demo and content files.
For the next time you want to create a new hook, please consider using the npm run plop CLI generator.
This cmd will create all the boilerplate for you ;)

PS: great addition, the useEventCallback 👍

@juliencrn juliencrn merged commit 8f8c985 into juliencrn:master Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants