Get HTTP response status code on fetchers #8147
Replies: 4 comments 6 replies
-
There’s no way. You need to use the response data to know if it was a success or not. |
Beta Was this translation helpful? Give feedback.
-
@ryanflorence I'd love your input on this if it wouldn't bother you. |
Beta Was this translation helpful? Give feedback.
-
Given the RemixJS philosophy of utilizing the web platform as much as possible - the fact that this is the recommendation is wildly surprising to me The answer is essentially:
Which seems antithetical to the philosophy. |
Beta Was this translation helpful? Give feedback.
-
Stumbled upon this today. Feels like an oversight, but I am sure it was intentional. Would love to know the reasoning behind this. Same with |
Beta Was this translation helpful? Give feedback.
-
I have a question, how would I get the response status code from a fetcher's action request?
I only get back the response data.
Right now I am manually adding in the response JSON the status as part of the response data but I think there should be a better way to access if the response was 400, 201, 200 etc.
Thanks for the attention and for mantaining this beautiful framework.
Beta Was this translation helpful? Give feedback.
All reactions