1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 06:24:19 +00:00

📔 Documentation update

This commit is contained in:
Stefano Pigozzi 2021-05-11 17:21:09 +02:00
parent 592edc3719
commit b7a7da8621
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01

View file

@ -4,7 +4,7 @@ import { useCallback, useState } from "react"
/**
* Hook which fetches data from the backend on the first render of a component.
*
* @param fetchData - The function to use when fetching data.
* @param fetchData - The function to use when fetching data, usually created by GlobalServer or GlobalUser.
* @param method - The HTTP method to use.
* @param path - The HTTP path to fetch the data at.
* @param body - The body of the HTTP request (it will be JSONified before being sent).