Package me. nikhilchaudhari. usefetch
Types
Functions
use Fetch
Link copied to clipboard
@Composable
Content copied to clipboard
useFetch for GET network request This composable lets you to create a GET network request and returns the response as a State values. You receive your appropriate Result as State. The resultState
has three states as mentioned in the return type. You can consume Result.Response.data to get the ResponseData object. The composable will be called again if any of the url, headers, params changes.
Properties
DEFAULT_DATA_HEADERS
Link copied to clipboard
DEFAULT_FORM_HEADERS
Link copied to clipboard
DEFAULT_HEADERS
Link copied to clipboard
DEFAULT_JSON_HEADERS
Link copied to clipboard