1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 13:04:19 +00:00

📔 Mark fetchData functions as deprecated

This commit is contained in:
Steffo 2021-05-23 18:20:33 +02:00
parent 14ea7f0c1d
commit 3508fd2125
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 2 additions and 0 deletions

View file

@ -20,6 +20,7 @@ export default function GlobalServer({ children }) {
/** /**
* Fetch JSON data from the API. * Fetch JSON data from the API.
* *
* @deprecated use {@link useBackendRequest} instead
* @param method - The method to use. * @param method - The method to use.
* @param path - The path to request data at (ex. `/api/repositories`) * @param path - The path to request data at (ex. `/api/repositories`)
* @param body - The body of the request (it will be automatically converted to JSON. * @param body - The body of the request (it will be automatically converted to JSON.

View file

@ -20,6 +20,7 @@ export default function GlobalUser({ children }) {
* *
* Requires an user to be logged in! * Requires an user to be logged in!
* *
* @deprecated use {@link useBackendRequest} instead
* @param method - The HTTP method to use. * @param method - The HTTP method to use.
* @param path - The path to request data at (ex. `/api/repositories`) * @param path - The path to request data at (ex. `/api/repositories`)
* @param body - The body of the request (it will be automatically converted to JSON. * @param body - The body of the request (it will be automatically converted to JSON.