PolymerElements / app-storage

Data-pipes and specialized services
61 stars 47 forks source link

I want to get data what i added in persisted-data on browser refresh #134

Open tlg-tejas opened 6 years ago

tlg-tejas commented 6 years ago

Description

When i do browser refresh persisted data is reset

Expected outcome

It should not be reset untill done

Actual outcome

Persisted data is resetting

Live Demo

Steps to reproduce

example - paper-tabs selected value needs to be persisted even after browser refresh

Browsers Affected

tlg-tejas commented 6 years ago

Can someone help me out with app-indexeddb-mirror polymer component, It always returns me null on page load when i refresh browser

I am using this.shadowRoot.querySelector('#sportsName').getStoredValue("sportsName").then((response) => { if (response) { this.set('previousSelectedSport', response); } else { this.set('previousSelectedSport', 0); } });

tlg-tejas commented 6 years ago

I have data in indexed db

image

derhuebiii commented 6 years ago

+1 Same here, it's not loaded after page refresh. Anything wrong? Session key is the same and I can also see it in Chrome dev tools.