New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@x011/request

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@x011/request

Use SWR in the way of useRequest hook

latest
Source
npmnpm
Version
0.0.8
Version published
Maintainers
1
Created
Source

@x011/request

Use SWR in the way of useRequest hook

Examples

  • Basic

Change Logs

  • [0.0.8] Bugfix If refresh data is not object {...data} will transform to object data once
  • [0.0.7] Bugfix & run function add new params reload, provider force send request with same params and trigger loading
  • [0.0.4] Optimize the position of the request promise function parameter to the first place, add the use of example code
  • [0.0.2] Add params SWR response and initialData parameter = swr.fallbackData, mutate => swrMutate, mutate will update the local data immediately, but disable the revalidation
  • [0.0.1] Add default parameters, manually execute functions, and refresh interfaces that match useRequest, etc.

Keywords

SWR

FAQs

Package last updated on 04 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts