soyguijarro / react-storage-hooks

React hooks for persistent state
https://npm.im/react-storage-hooks
MIT License
166 stars 18 forks source link

WIP: Add async storage support #20

Open jgornick opened 4 years ago

jgornick commented 4 years ago

Work-in-progress PR to add async support.

jgornick commented 4 years ago

@soyguijarro Any chance I can get some feedback on the approach taken here? Just want to make sure this is a good approach to move forward with. Thanks!

soyguijarro commented 4 years ago

@soyguijarro Any chance I can get some feedback on the approach taken here? Just want to make sure this is a good approach to move forward with. Thanks!

Hey! It's been a few busy weeks for me, but I should have time to properly review this over the weekend. Thanks a lot for your contribution!

andria-dev commented 3 years ago

Any word on if this PR is ready or not, @soyguijarro?

andria-dev commented 3 years ago

Is react-storage-hooks still active?

jgornick commented 3 years ago

Hi @ChrisBrownie55, I can't say if the project is still active or not. However, my use case was only to use AsyncStorage, so I created a useAsyncStorage hook: https://gist.github.com/jgornick/e9fb5f3cafa63914fa19c936e89a98ed

Hope this helps!