This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
react-rest-request/src
Dmitriy Pleshevskiy 8c6833805b feat!(request-hook): add new request hook
This hook works only for endpoint with GET method.

* refac!(request-hook): add lazy prefix to request hook

BREAKING CHANGES: you need to rename all `useRequest` hooks to
`useLazyRequest`

* refac!(request-hook): add public request state

BREAKING CHANGES: User shouldn't see previous headers, variables and params.
It's only for hooks so it doesn't call request again. If you use these
state you should to remove it from your code.

* chore: update example

Closes #5
2020-11-05 23:26:56 +03:00
..
client-hook.ts feat!(client): add client fetch based 2020-11-05 00:23:57 +03:00
client.ts feat!(client): add client fetch based 2020-11-05 00:23:57 +03:00
endpoint.ts Initial commit 2020-11-04 00:39:14 +03:00
index.ts feat!(request-hook): add new request hook 2020-11-05 23:26:56 +03:00
lazy-request-hook.ts feat!(request-hook): add new request hook 2020-11-05 23:26:56 +03:00
misc.ts feat!(client): add client fetch based 2020-11-05 00:23:57 +03:00
reducer.ts feat!(request-hook): add new request hook 2020-11-05 23:26:56 +03:00
request-context.tsx feat!(client): add client fetch based 2020-11-05 00:23:57 +03:00
request-hook.ts feat!(request-hook): add new request hook 2020-11-05 23:26:56 +03:00