Data disappearing when moving tabs. Is local storage the solution?

Data disappearing when moving tabs. Is local storage the solution?

Hi,

I have a list that I retrieve using json format and display them on the page. However, when I click on other tabs and come back, it hasn't be kept. Is local storage the best solution for that? 

Thanks.