Open vitalybaev opened 3 years ago
According to the code, you pass storageProvider to the use-persisted-state, and it uses getItem directly from it, not from localStorage property:
storageProvider
use-persisted-state
getItem
localStorage
https://github.com/donavon/use-persisted-state/blob/develop/src/createStorage.js#L3
According to the code, you pass
storageProvider
to theuse-persisted-state
, and it usesgetItem
directly from it, not fromlocalStorage
property:https://github.com/donavon/use-persisted-state/blob/develop/src/createStorage.js#L3