Open SanjalKatiyar opened 1 month ago
PR https://github.com/red-hat-storage/odf-console/pull/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
useUserSettingsLocalStorage
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.
cc @GowthamShanmugam @bipuladh
Console issue link: https://github.com/openshift/console/issues/14393
PR https://github.com/red-hat-storage/odf-console/pull/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.tsNote: we can talk to OCP team and get this hook exposed as part of SDK as well, instead of copying it on our end.