Open blacksmoke26 opened 4 years ago
Hi,
Again, you might want to make a PR instead of creating issues to share your pratices.
And how about extending useLocalStorage
hook to make it accept an alternative localStorage
implementation? So users can pass in localForage
as a hook parameter.
It will help providing consistent API with useLocalStorage
hook instead of providing your own one.
Natively, both fill the same hole, but Localforge take care of browsers with ease.
You have a point, i will dig into it and get back to you
localForage*
I have written a hook for my app. If it's useful, you can use it:
Source: