Template repeat will not refresh when data changes

145 views
Skip to first unread message

Kenny Williams

unread,
Aug 26, 2014, 1:46:02 PM8/26/14
to polym...@googlegroups.com
As the title says, whenever I change the data on a template with repeat on a set of data, the list will not update. Is there a force update method or some trick that I am missing in order to get the template to refresh? 

I have tried using the following but that will only cause the template to remove all of the elements that were repeated and not repeat for the updated values. 
template.iterator_.updateIteratedValue();


Kenny Williams

unread,
Aug 26, 2014, 1:52:53 PM8/26/14
to polym...@googlegroups.com
I thought of a solution right as I posted that and turns out it works. Although it isn't entirely intuitive, it works for now. I'll leave this post up for reference. 

I had to set the template's model to the new, updated data. 
(set! (.-model template) (.-dataList this))
Reply all
Reply to author
Forward
0 new messages