RizuGulati
8 years agoQrew Cadet
Force refresh a page after webhook has changed data
I am using a webhook to update some tasks (ex. task B and C) as complete in a table once a particular task (task A) is marked as complete. So when I mark task A as complete, the page is refreshed and it removes A from the list since it's completed. In the background, the webhook is triggered and it updates B and C as complete.
However, I still see B and C visible when the page is redirected after I change task A. I believe there is a delay while the webhook is making changes, therefore, I have to refresh the page a second time to see the change. I don't want to have our users refresh the page twice every time they make these updates.
Is there a way to force reload a page in this scenario? Or any other solution that might help here?
Thanks.
However, I still see B and C visible when the page is redirected after I change task A. I believe there is a delay while the webhook is making changes, therefore, I have to refresh the page a second time to see the change. I don't want to have our users refresh the page twice every time they make these updates.
Is there a way to force reload a page in this scenario? Or any other solution that might help here?
Thanks.