Dmitriy Pleshevskiy
8c6833805b
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 |
||
---|---|---|
.. | ||
client-hook.ts | ||
client.ts | ||
endpoint.ts | ||
index.ts | ||
lazy-request-hook.ts | ||
misc.ts | ||
reducer.ts | ||
request-context.tsx | ||
request-hook.ts |