We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7df2590 commit f8c3371Copy full SHA for f8c3371
src/libraries/httpService/$api.ts
@@ -7,6 +7,14 @@ export const $api = new HttpService({
7
Accept: 'application/json',
8
};
9
},
10
+ isSuccess: (response) => {
11
+ console.log(response.data);
12
+ // if (response.data._id === 'react-native') {
13
+ // return false;
14
+ // }
15
+
16
+ return true;
17
+ },
18
onRespondError: (response: HttpResponse<{ error: string, reason: string }>, transform) => {
19
if (response.data && response.data.reason) {
20
transform.message = response.data.reason;
0 commit comments