How to reload UI after webhook event received #2367
-
Hello! I am new to Remix. I am currently trying to enqueue some long-running background task in a route action I noticed #1363 and #2141 but it's not clear to me from the examples how the data loaders/UI would reload when the job completes and reports back. Thanks in advance to everyone for reading and their help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When the client submits a task, I'm assuming that task is added to a background process and you immediately return to the client. At this point, the client won't know the status of the task. When the task is completed and notifies your webhook, the server doesn't have a way to let the client know it is completed. There are a couple of ways to do this:
|
Beta Was this translation helpful? Give feedback.
When the client submits a task, I'm assuming that task is added to a background process and you immediately return to the client.
At this point, the client won't know the status of the task. When the task is completed and notifies your webhook, the server doesn't have a way to let the client know it is completed.
There are a couple of ways to do this: