We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
f182c06
// before const [request, createRequest] = useRequest(...); // now const [createRequest, request] = useRequest(...);
const [createRequest] = useRequest(...); const fetch = async () => { // before const response = await createRequest.ready(); // now. [T, Omit<AxiosResponse<T>, "data">] const [response, otherAxiosReponse] = await createRequest.ready(); }
// before const [{ data, error, isLoading, cancel }] = useResource(...); // now. other: Omit<AxiosResponse, "data"> const [{ data, other, error, isLoading, cancel }] = useResource(...);