diff --git a/4-10-9979/README.md b/4-10-9979/README.md index 3d70e83..ba4636e 100644 --- a/4-10-9979/README.md +++ b/4-10-9979/README.md @@ -2,5 +2,8 @@ ## Branches -[Minor fixes to make the original customer code compile locally](https://github.com/david-mcafee/amplify-issue-repro/tree/minor-fixes-to-compile) -[Diff]() \ No newline at end of file +[Minor fixes to make the original customer code compile locally](https://github.com/david-mcafee/amplify-issue-repro/tree/basic-fixes) +[Diff](https://github.com/david-mcafee/amplify-issue-repro/pull/3/files) + +[Resolve concurrency issue on poor connections branch](https://github.com/david-mcafee/amplify-issue-repro/tree/concurrency-fix) +[Diff](https://github.com/david-mcafee/amplify-issue-repro/pull/4/files) diff --git a/4-10-9979/src/App.js b/4-10-9979/src/App.js index ce0773e..d2641f8 100644 --- a/4-10-9979/src/App.js +++ b/4-10-9979/src/App.js @@ -67,7 +67,7 @@ function App() { const [isPosting, setIsPosting] = useState(false); const taskObserver = useRef({ unsubscribe: () => {} }); const timeSet = useRef(null); - const taskId = "38b35b73-2b4a-406a-bcf0-de0bc56ee8d0"; + const taskId = "8c8e49ea-0187-4777-a779-3d9c8f2d4a2c"; const prevVersion = useRef(null); function checkDisabled(key) { @@ -132,7 +132,9 @@ function App() { console.log(e); } } - useEffect(() => getTaskAndUpdateState(), []); + useEffect(() => { + getTaskAndUpdateState(); + }, []); function calculateState() { if (!task) return; @@ -152,7 +154,7 @@ function App() {
{task ? task.status : ""}
-
+ {Object.entries(fields).map(([key, label]) => { return (