We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I'd like to check status codes using react-fetch, so the code could match this:
fetch(someURL, someOptions) .then(APIUtils.checkStatus) .then(response => response.json()) .catch(API.handleUnauthorized);
But when I use:
<Fetch url=someURL options={someOptions} onSuccess={APIUtils.checkStatus} onError={APIUtils.handleUnauthorized}
The onSuccess function is called after the first .then, after the status codes are checked.
How could I do this using your component?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I'd like to check status codes using react-fetch, so the code could match this:
fetch(someURL, someOptions)
.then(APIUtils.checkStatus)
.then(response => response.json())
.catch(API.handleUnauthorized);
But when I use:
<Fetch
url=someURL options={someOptions} onSuccess={APIUtils.checkStatus} onError={APIUtils.handleUnauthorized}
The onSuccess function is called after the first .then, after the status codes are checked.
How could I do this using your component?
Thanks in advance!
The text was updated successfully, but these errors were encountered: