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

react-fetch-hook

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fetch-hook - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

package.json
{
"name": "react-fetch-hook",
"version": "1.3.1",
"version": "1.3.2",
"description": "React fetch hook",

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

@@ -94,3 +94,3 @@ import React from "react";

const result = useFetch("https://google.com", { ...options, preventCallFetch: true });
return <div>{result.data}</div>;
return <div>{result.data && result.data.data}</div>;
};

@@ -118,3 +118,3 @@

const result = useFetch("https://google.com", { ...options, depends: [true, false] });
return <div>{result.data}</div>;
return <div>{result.data && result.data.data}</div>;
};

@@ -142,3 +142,3 @@

const result = useFetch("https://google.com", { ...options, depends: [""] });
return <div>{result.data}</div>;
return <div>{result.data && result.data.data}</div>;
};

@@ -166,3 +166,3 @@

const result = useFetch("https://google.com", { ...options, depends: [] });
return <div>{result.data}</div>;
return <div>{result.data && result.data.data}</div>;
};

@@ -190,3 +190,3 @@

const result = useFetch("https://google.com", { ...options, depends: [true, true] });
return <div>{result.data}</div>;
return <div>{result.data && result.data.data}</div>;
};

@@ -193,0 +193,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