Skip to content

Fixed storageProvider typings#62

Open
vitalybaev wants to merge 1 commit intodonavon:developfrom
vitalybaev:patch-1
Open

Fixed storageProvider typings#62
vitalybaev wants to merge 1 commit intodonavon:developfrom
vitalybaev:patch-1

Conversation

@vitalybaev
Copy link
Copy Markdown

According to the code, you pass storageProvider to the use-persisted-state, and it uses getItem directly from it, not from localStorage property:

https://github.com/donavon/use-persisted-state/blob/develop/src/createStorage.js#L3

According to the code, you pass `storageProvider` to the `use-persisted-state`, and it uses `getItem` directly from it, not from `localStorage` property:

https://github.com/donavon/use-persisted-state/blob/develop/src/createStorage.js#L3
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.

1 participant