Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uf

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uf - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "uf",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://usefet.ch",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -83,3 +83,3 @@ [![use-http logo][3]][5]

- Persistent caching support
- Suspense<sup>(experimental)</sup> support
- Suspense support
- Retry functionality

@@ -98,3 +98,3 @@

- useFetch - cacheLife, cachePolicy [![](https://img.shields.io/badge/video-red.svg)](https://www.youtube.com/watch?v=AsZ9hnWHCeg&list=PLZIwrWkE9rCdUybd8t3tY-mUMvXkCdenW&index=3&t=0s)
- useFetch - suspense <sup>(experimental)</sup> [![](https://img.shields.io/badge/example-blue.svg)](https://codesandbox.io/s/usefetch-suspense-i22wv) [![](https://img.shields.io/badge/video-red.svg)](https://www.youtube.com/watch?v=7qWLJUpnxHI&list=PLZIwrWkE9rCdUybd8t3tY-mUMvXkCdenW&index=2&t=0s)
- useFetch - suspense [![](https://img.shields.io/badge/example-blue.svg)](https://codesandbox.io/s/usefetch-suspense-i22wv) [![](https://img.shields.io/badge/video-red.svg)](https://www.youtube.com/watch?v=7qWLJUpnxHI&list=PLZIwrWkE9rCdUybd8t3tY-mUMvXkCdenW&index=2&t=0s)
- useFetch - pagination [![](https://img.shields.io/badge/example-blue.svg)](https://codesandbox.io/s/usefetch-provider-pagination-exttg) [![](https://img.shields.io/badge/video-red.svg)](https://www.youtube.com/watch?v=YmcMjRpIYqU&list=PLZIwrWkE9rCdUybd8t3tY-mUMvXkCdenW&index=5)

@@ -168,3 +168,3 @@ - useQuery - GraphQL [![](https://img.shields.io/badge/example-blue.svg)](https://codesandbox.io/s/graphql-usequery-provider-uhdmj)

<details open><summary><b>Suspense Mode<sup>(experimental)</sup></b></summary>
<details open><summary><b>Suspense Mode</b></summary>

@@ -200,5 +200,5 @@ Can put `suspense` in 2 places. Either `useFetch` (A) or `Provider` (B).

<details><summary><b>Suspense Mode<sup>(experimental)</sup> (lazy)</b></summary>
<details><summary><b>Suspense Mode (lazy)</b></summary>
Can put `suspense` in 2 places. Either `useFetch` (A) or `Provider` (B). Lazy suspense mode is very experimental.
Can put `suspense` in 2 places. Either `useFetch` (A) or `Provider` (B).

@@ -321,3 +321,3 @@ ```js

setLoadingMore(true)
const { data: moreTodos, ok } = await todosAPI.get(`?page=${page.current++}&perPage=${perPage}`)
const { data: moreTodos, ok } = await todosAPI.get(`?page=${++page.current}&perPage=${perPage}`)
if (ok) {

@@ -809,3 +809,3 @@ // setTodos would use the cache key `/todos` and save this into cache

| `retryOn` | You can retry on certain http status codes or have custom logic to decide whether to retry or not via a function. Make sure `retries > 0` otherwise it won't retry. | `[]` |
| `suspense` | Enables Experimental React Suspense mode. [example](https://codesandbox.io/s/usefetch-suspense-i22wv) | `false` |
| `suspense` | Enables React Suspense mode. [example](https://codesandbox.io/s/usefetch-suspense-i22wv) | `false` |
| `timeout` | The request will be aborted/cancelled after this amount of time. This is also the interval at which `retries` will be made at. **in milliseconds**. If set to `0`, it will not timeout except for browser defaults. | `0` |

@@ -898,3 +898,3 @@

// enables experimental React Suspense mode
// enables React Suspense mode
suspense: true, // defaults to `false`

@@ -911,3 +911,3 @@

Who's using use-http?
Who's using useFetch?
----------------------

@@ -914,0 +914,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc