Open tlg-tejas opened 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); } });
I have data in indexed db
+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.
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