Skip to content

Commit

Permalink
setProps on modified_timestamp after setting initial data.
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Sep 21, 2018
1 parent 3a1111e commit beaef00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Storage.react.js
Expand Up @@ -133,6 +133,11 @@ export default class Storage extends React.Component {
if (R.isNil(old) && data) {
// Initial data mount
this._backstore.setItem(id, data);
if (setProps) {
setProps({
modified_timestamp: this._backstore.getModified(id)
})
}
return;
}

Expand Down

0 comments on commit beaef00

Please sign in to comment.