Skip to content

Components don't re-render. #24

Description

@itemsCenter

Clearly describe the bug
Components don't automatically re-render upon changing value in State (even though the value has changes in localStorage. Components re-render automatically only in main page, when I try to import useLocalState to my sub-components in the page it just doesn't re-render on change.

Which version of use-local-state are you using?

0.1.4

What version of React are you using use-local-state within?

18.1.0

What build/platform are you using?

Next.js 12.3

What did you expect to happen?

Components to automatically re-render when value changes, just like in React's useState.

What actually happened (e.g. what warnings or errors did you get)?

Nothing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions