I think it can create a Model to store the export status, so that it can be queried at any time.
Then use the turbo stream broadcast to update the page.
I recently recorded a video (in Chinese) showing the usage of turbo stream broadcast: https://ruby-china.org/topics/42959
I try to replace ActionCable.server.broadcastwith Turbo::StreamsChannel.broadcast_replace_to to broadcast HTML partial to users. It works. But I think ActionCable is the easier way in this case.
ActionCable.server.broadcast
Turbo::StreamsChannel.broadcast_replace_to
I think it can create a Model to store the export status, so that it can be queried at any time.
Then use the turbo stream broadcast to update the page.
I recently recorded a video (in Chinese) showing the usage of turbo stream broadcast: https://ruby-china.org/topics/42959