react-cancelable
Advanced tools
Comparing version 1.0.2 to 1.0.3
/** | ||
* @description Hook to prepare cencelable image request. | ||
* `fn` must return a Request as Blob | ||
* @description Hook to prepare cancelable image request. | ||
* `fn` must return a Request with Blob response | ||
*/ | ||
export default function useCancelableImg(fn: CancelableRequestFn, opts?: UseCancelableReqParams): UseCancelableImgReturn; |
@@ -9,4 +9,4 @@ "use strict"; | ||
/** | ||
* @description Hook to prepare cencelable image request. | ||
* `fn` must return a Request as Blob | ||
* @description Hook to prepare cancelable image request. | ||
* `fn` must return a Request with Blob response | ||
*/ | ||
@@ -13,0 +13,0 @@ function useCancelableImg(fn, opts) { |
/** | ||
* @description Hook to prepare cencelable image request. | ||
* `fn` must return a Request as Blob | ||
* @description Hook to prepare cancelable image request. | ||
* `fn` must return a Request with Blob response | ||
*/ | ||
export default function useCancelableImg(fn: CancelableRequestFn, opts?: UseCancelableReqParams): UseCancelableImgReturn; |
import { useState } from "react"; | ||
import useCancelableReq from "./useCancelableReq"; | ||
/** | ||
* @description Hook to prepare cencelable image request. | ||
* `fn` must return a Request as Blob | ||
* @description Hook to prepare cancelable image request. | ||
* `fn` must return a Request with Blob response | ||
*/ | ||
@@ -7,0 +7,0 @@ export default function useCancelableImg(fn, opts) { |
{ | ||
"name": "react-cancelable", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "./lib/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./lib/esm/index.js", |
<h1 align="center">react-cancelable</h1> | ||
<p align="center"><i>Improve client's traffic experiense</i></span> | ||
<p align="center"><i>Internet traffic economizer</i></span> | ||
<br></br> | ||
@@ -8,3 +8,4 @@ | ||
[![version][npm-version-badge]][npm-url] | ||
[![downloads][total-downloads-badge]][npm-url] | ||
[![downloads][weekly-downloads-badge]][npm-url] | ||
<!-- [![downloads][total-downloads-badge]][npm-url] --> | ||
@@ -14,2 +15,3 @@ [npm-url]: https://www.npmjs.com/package/react-cancelable | ||
[total-downloads-badge]: https://img.shields.io/npm/dt/react-cancelable.svg | ||
[weekly-downloads-badge]: https://img.shields.io/npm/dm/react-cancelable.svg | ||
@@ -33,3 +35,3 @@ <br /> | ||
In most of cases client consumes a lot of excess traffic. Modern web applications make a huge bunch of requests per conventional time unit then a lot of clients don't wait until all requests made by web app are finished. As a result, the browser expects data that will no longer be used | ||
In most of cases client consumes a lot of excess internet traffic. Modern web applications make a huge bunch of requests per conventional time unit then a lot of clients don't wait until all requests made by web app are finished. As a result, the browser expects data that will no longer be used | ||
@@ -36,0 +38,0 @@ But don't worry you can easily deal with it with the latest AbortController API and react-cancelable |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30883
23
463