Fix cache load race condition bug

master
Tanner Collin 4 years ago
parent 72f1043952
commit 02b73a8b14
  1. 2
      webclient/src/Article.js

@ -24,8 +24,10 @@ class Article extends React.Component {
localForage.getItem(id)
.then(
(value) => {
if (value) {
this.setState({ story: value });
}
}
);
fetch('/api/' + id)

Loading…
Cancel
Save