I have an array which contains sub-properties, sub-properties are again objects and sub-arrays.
when I get API response from the server I used to display that using dom-repeat and when I get the another API response of the same format with the minor change in its value, I will replace my old array with the new array with dirty checking like
<template is="dom-repeat" items="{{arr}}">
//paper list codes for display
</temlate>
this.arr = [];
this.arr = newArrayFromResponse;
but when I do this only some paper list will update whose values are changed, dom-repeat will not create all nodes, it will just update those nodes whose values have changed.
when I just clear array like this.arr = []; in this case, it will destroy all nodes,
but if I immediately reassign once again it will just update nodes.
how to clear all nodes and execute dom-repeat from scratch? I tried polymers array mutation and render() function and reffered https://github.com/Polymer/polymer/issues/4041 that didn't work!! each time.
I need to render dom-repeat in a similar way like it's rendering for the first time, like a blank screen and immediate rendering