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
Where options is fetch options and config is SWRConfiguration. data ends up an object with data and all other response keys with it. I also tried this:
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.
-
What is the best way to get response headers from a normal
fetch
? I tried doing it this way but it seems ugly?:Where
options
is fetch options andconfig
isSWRConfiguration
.data
ends up an object withdata
and all other response keys with it. I also tried this:Which is... pretty much the same but more consistent with using promises only. Is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions