I have completed the dApp here, but when I tried to submit a new task, the list did not obtained the new task from blockchain. I have to manually refresh the page to see the added task. I tried to put the loadBlockchainData() into componentDidMount() but this doesn't help as the component will mount only once. I am not sure if it is because of the async behavior of loadBlockchainData(), I tried to call loadBlockchainData() in the createTask() right after the receipt.
I have completed the dApp here, but when I tried to submit a new task, the list did not obtained the new task from blockchain. I have to manually refresh the page to see the added task. I tried to put the loadBlockchainData() into componentDidMount() but this doesn't help as the component will mount only once. I am not sure if it is because of the async behavior of loadBlockchainData(), I tried to call loadBlockchainData() in the createTask() right after the receipt.
But the data retrieved remained the same. How to retrieved the updated data immediately?