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
-[Example – Aborting http request triggered by the hook](#example--aborting-http-request-triggered-by-the-hook)
53
55
-[Example – Http post request hook](#example--http-post-request-hook)
54
56
-[Events](#events)
55
57
-[Caching](#caching)
@@ -347,7 +349,12 @@ The library provides a hook `useHttpRequest` managing the state of the http requ
347
349
| fetchOnBootstrap | boolean | Tell if the fetch must be triggered automatically when mounting the component or not. In the second case we would like to have a manual fetch, this is optained by a request function returned by the hook. |
348
350
349
351
### Http request hook return
350
-
Returns an array of two elements, the first one embeds the state of the http request and the second one is a function that can be used to trigger the http request. The table below describes the shape (i.e. properties) of http request state.
352
+
Returns an array of three elements:
353
+
- The first one embeds the state of the http request.
354
+
- The second is a function that can be used to perform an abortable http request
355
+
- The third is a function that can be used to perform a non-abortable http request.
356
+
357
+
See examples for further details. The table below describes the shape (i.e. properties) of http request state.
0 commit comments