Answer the question
In order to leave comments, you need to log in
Is it possible to use LocalStorage for individual pages?
Is it possible to use LocalStorage for individual pages? It is required that data from LS be pulled up only on those pages from which it was saved.
Answer the question
In order to leave comments, you need to log in
The task is not very clear from the question.
But, most likely, you just need to add the page address to the key:
When reading, respectively, add this address to the key. {"/articles/42-your-item": "foo"}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question