Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

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 20, 2018
1 parent 8c7f840 commit da5bbf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Storage.react.js
Original file line number Diff line number Diff line change
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 da5bbf3

Please sign in to comment.