Re:Code optimizations when using async/await
by have_faith on Tuesday January 04, 2022 @11:46AM
(#29796813)
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.
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.