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
* Cacthes any errors that may occur during the fetch request and returns an error in the response object as FetchJsonResponse.
17
-
* It expects the server to return a JSON object like `{"error": "User not found"}` in case of an error, "error" field could be also named "message" or "reason" or "detail".
18
+
* It expects the server to return a JSON object like `{"error": "User not found"}` in case of an error, "error" field could be also named "message" or "reason" or "title".
18
19
*
19
20
* @template T - The expected type of the response data.
20
21
* @param {string} endpoint - The URL endpoint to fetch data from.
0 commit comments