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

Commit beaef00

Browse files
committed
setProps on modified_timestamp after setting initial data.
1 parent 3a1111e commit beaef00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/Storage.react.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ export default class Storage extends React.Component {
133133
if (R.isNil(old) && data) {
134134
// Initial data mount
135135
this._backstore.setItem(id, data);
136+
if (setProps) {
137+
setProps({
138+
modified_timestamp: this._backstore.getModified(id)
139+
})
140+
}
136141
return;
137142
}
138143

0 commit comments

Comments
 (0)