Skip to content

Add option for sessionStorage in useUserSettingsLocalStorage hook #1629

@SanjalKatiyar

Description

@SanjalKatiyar

PR #1598 added a hook useUserSettingsLocalStorage which provides access to localStorage, need to add an optional prop for sessionStorage as well.
ex: https://github.com/openshift/console/blob/master/frontend/packages/console-shared/src/hooks/useUserSettingsLocalStorage.ts

Note: we can talk to OCP team and get this hook exposed as part of SDK as well, instead of copying it on our end.

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