PolymerElements / app-storage

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

Documentation insufficient to use element #80

Open martijnjanssen opened 7 years ago

martijnjanssen commented 7 years ago

The documentation is lacking and not useful when trying to use app-localstorage-document. It is not clear at all how to initialize the storage correctly and get the element to work correctly. I am now trying to use the element, but since it is not clear how to initialize correctly, the value in the localstorage is undefined. However, the element does have the correct key.

With logging on, it lets me know that it is correctly calling the initialized method and got a new value: undefined.

puranjayjain commented 7 years ago

Same issue here, unable to understand how to override zeroValue. Also no way of defaulting to a value via properties on the elements, instead i have to set a default value on my element's properties and bind them to the app-localstorage-document. Although this works for me in most cases but fails in some cases where I want the newly updated value from the localstorage to trigger the observer but instead it triggers for me twice which is a problem.