awai-react
Advanced tools
Comparing version 0.0.1-alpha-7 to 0.0.1-alpha-8
@@ -21,5 +21,8 @@ 'use strict'; | ||
]); | ||
if (mounted) { | ||
const newAsync = readable.getAsync(); | ||
const isChanged = newAsync.error !== state.error || newAsync.isLoading !== state.isLoading || newAsync.value !== state.value; | ||
if (isChanged && mounted) { | ||
setState(readable.getAsync()); | ||
} | ||
} catch { | ||
} finally { | ||
@@ -26,0 +29,0 @@ abortController.abort(); |
{ | ||
"name": "awai-react", | ||
"version": "v0.0.1-alpha-7", | ||
"version": "v0.0.1-alpha-8", | ||
"author": "Yuriy Yakym", | ||
@@ -5,0 +5,0 @@ "description": "React hooks for Awai integration", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
18478
146