Skip to content

window.localStorage.clear() not working with useLocalStorage hook #340

Open
@dhiraj-shipmnts

Description

@dhiraj-shipmnts

Please see the video attached here

useLocalStorage.mp4

If you observe, when I clear storage in a tab, it does not sync back to the other tab and as I update the local storage in the that tab, complete data gets synced back to the previous tab. Ideally, clearing the storage should also have synced to the other tabs.

This recording is from the useLocalStorage hook's demo, but I am facing the same thing while using this hook.

Are there any solutions for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions