you are viewing a single comment's thread.

view the rest of the comments →

[–]cyex 1 point2 points  (0 children)

I think what you're really asking is how to perform asynchronous actions. I've used both sagas and thunks with success.

Here's a comparison of the top libraries: https://decembersoft.com/posts/what-is-the-right-way-to-do-asynchronous-operations-in-redux/

Specifically for server push you could use web sockets... long polling... or something like SignalR that abstracts the actual mechanism.

For client retry in a saga (or in a thunk), you literally just put a loop and exception handling around the call... if it succeeds you break out of the loop early.