app-storage icon indicating copy to clipboard operation
app-storage copied to clipboard

loop over data property to update only necessary persistedData keys

Open christophe-g opened this issue 8 years ago • 0 comments

Similar to https://github.com/firebase/polymerfire/pull/166.

Also added a disconnected behavior to handle cases where data and persistedData should not be linked anymore, eg, for a case like data bound to a remote inaccessible resource:

<--! {{liveData}} === {} when [[user.uid]] is not set. -->
<firebase-document path="/userData/appCurrent/[[user.uid]]" data="{{liveData}}"></firebase-document>
<app-indexeddb-mirror log disconnected="[[!user.uid]]" session=[[user.uid]] key="appCurrent" data="{{liveData}}" persisted-data="{{data}}"></app-indexeddb-mirror>

christophe-g avatar Dec 21 '16 13:12 christophe-g