I had a useEffect that would reevaluate if the logs changed. It enabled
or disabled the replace button. However, the task logs are a nested
array (index is task id, value is array of tasks logs). For some
reason, when the inner array of logs is updated, it doesn't count as
new state.
So I extracted a more specific thing out of the useEffect (the pickup
logs; a single array) to watch for instead.
I had a useEffect that would reevaluate if the logs changed. It enabled
or disabled the replace button. However, the task logs are a nested
array (index is task id, value is array of tasks logs). For some
reason, when the inner array of logs is updated, it doesn't count as
new state.
So I extracted a more specific thing out of the useEffect (the pickup
logs; a single array) to watch for instead.