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

rc-hooks

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-hooks - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

6

lib/useAsync/index.js

@@ -52,4 +52,2 @@ "use strict";

// TODO:
// 有缓存时,不重新请求,获取缓存时判断params是否相同,长缓存?
// 空函数

@@ -171,3 +169,3 @@ var noop = function noop() {}; // 异步方法hooks

onSuccess(fmtData, args);
resolve(fmtData, args);
resolve(fmtData);
}

@@ -187,3 +185,3 @@ })["catch"](function (error) {

onError(error, args);
reject(error, args);
reject(error);
}

@@ -190,0 +188,0 @@ })["finally"](function () {

{
"name": "rc-hooks",
"version": "0.5.3",
"version": "0.5.4",
"description": "React Hooks Library.",

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

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