You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This demonstrates how unneeded is to add things like this to a
fetch()
wrapper, so long you have the right wrapper to start with. 😄This code snippet uses the well-estrablished
p-retry
NPM package. As seen, there is zero friction between this package anddr-fetch
:As expected, TypeScript remains unaltered and you have full Intellisense on your response object:

Beta Was this translation helpful? Give feedback.
All reactions