The problem is that iron-localstorage does not reflect updates you make 
with localstorage.setItem. If you are using DOM APIs, you need to call 
iron-localstorage.reload to load the new value.

localstorage is not a global.

Aleks


On Friday, September 18, 2015 at 5:39:39 PM UTC-7, [email protected] 
wrote:
>
> I have this:
>
>    <template id="repeat" is="dom-repeat" items="[[model]]" as="day">
>        <component model="[[day]]"></component>
>    </template>
>
>
> It's recieving model from a iron-local-storage load. When I push something 
> to my localstorage using localStorage.setItem, I want this dom-repeat to 
> update and display the new item I pushed. 
>
> Right now it only appears AFTER I refresh the page, because it reloads 
> everything from local storage. 
>
> I tried using this.$.repeat.render(); but that didn't work. I want the 
> dom-repeat to display the new object instantly without having to refresh 
> the page. 
>
> Is this possible?
>
> Thanks!
>
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/c9742e5c-041b-410f-af29-5318e1108698%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to