I will try to be as specific as possible in my question.
I am allocating some values (key-text) in the sessionStorage.
I am using a dynamic method to get the keys for each session.
Unfortunately, reading on various websites and asking for support from people more experienced than me, I still couldn’t solve my problem …
Anyone know how to get all sessionStorage values obtained with a dynamic key ??
let unique_id = Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
const [value,setValue] = useState({
id:unique_id,
payload: ' ',
})
sessionStorage.setItem(value)