Skip to content

[BUG] readValue isn't exported, on useReadLocalStorage which makes it harder to integrate with code that isn't inside of react components #671

Open
@hems

Description

@hems

Describe the bug

I believe it would be great to have useReadLocalStorage function readValue and other hooks with such "vanilla js" functions exported somehow as well, so for instance when integrating with parts of the application that aren't reactive / part of a react component the values could be easily read.

To Reproduce

Try to read a localStorage value set from a React hook, you will end up having to re-implement the readValue function

Expected behavior

Export the readValue / parsing logic.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions