Skip to content

Commit

Permalink
fix(useFetch):
Browse files Browse the repository at this point in the history
Fixes updates now being pushed because of misspelled constant
  • Loading branch information
danybeltran committed Jul 6, 2024
1 parent cfe1f41 commit f72fd8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "http-react",
"version": "3.6.1",
"version": "3.6.2",
"description": "React hooks for data fetching",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ export function useFetch<FetchDataType = any, BodyType = any>(
if (!willSuspend.get(resolvedKey)) {
queue(() => {
if (inDeps('data')) {
if (isDefined(data)) {
if (isDefined($data)) {
if (!jsonCompare(data, cacheProvider.get(resolvedDataKey))) {
setData(cacheProvider.get(resolvedKey))
}
Expand Down

0 comments on commit f72fd8f

Please sign in to comment.