react-fetch-hook
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"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 @@ |
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
24207