react-request-hook
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0
{ | ||
"name": "react-request-hook", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0", | ||
"description": "Managed request calls made easy by React Hooks", | ||
@@ -5,0 +5,0 @@ "author": "Matheus Schettino", |
@@ -1,2 +0,2 @@ | ||
# React Request Hook | ||
![React Request Hook](https://raw.githubusercontent.com/schettino/react-request-hook/master/other/react-request-hook.png) | ||
@@ -25,2 +25,3 @@ > Managed, cancelable and safely typed requests. | ||
- [Type safety for non typescript projects](#type-safety-for-non-typescript-projects) | ||
- [Examples](#examples) | ||
- [Acknowledgement](#acknowledgement) | ||
@@ -172,3 +173,3 @@ - [License](#license) | ||
By using it, you're responsible for handling the promise resolution. It's still cancel pending requests when unmounting the component. | ||
By using it, you're responsible for handling the promise resolution. It's still canceling pending requests when unmounting the component. | ||
@@ -249,4 +250,10 @@ ```tsx | ||
And you'll have | ||
![Type hint](https://raw.githubusercontent.com/schettino/react-request-hook/master/other/type-hint.png) | ||
<p align="center"> | ||
<img width="600" src="https://raw.githubusercontent.com/schettino/react-request-hook/master/other/type-hint.png"> | ||
</p> | ||
## Examples | ||
The examples folder contains a `/components` folder with different use cases, like infinite scrolling components, search input that triggers the api, and so on. It's currently a working in progress. | ||
## Acknowledgement | ||
@@ -263,3 +270,2 @@ | ||
[axios-request-config]: (https://github.com/axios/axios#request-config) | ||
[npm]: https://www.npmjs.com/package/react-request-hook | ||
@@ -266,0 +272,0 @@ [npm-badge]: https://img.shields.io/npm/v/react-request-hook.svg |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
69243
0
282