Socket
Socket
Sign inDemoInstall

react-request-hook

Package Overview
Dependencies
13
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-alpha.3 to 1.0.0

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc