3 ms·
Yeah this domain of problems doesn't seem to have a "neat" solution either built in or via some defacto library. I'm guessing you want to easily be able to say
by have_faith 5y ago
Yeah this domain of problems doesn't seem to have a "neat" solution either built in or via some defacto library. I'm guessing you want to easily be able to say "attempt these requests, retry the failures at most these times, using this method of back-off, get back to me with the result" plus whatever other options of configurability for the failure modes.
If you are using ReactJS then react-query does a very good job of handling these concerns for you specifically for syncing up with server side state locally.