@aliyun-obv/hooks
Advanced tools
Comparing version 0.0.58 to 0.0.59
@@ -42,4 +42,3 @@ import { useState, useRef, useEffect, useMemo, useLayoutEffect, useCallback } from 'react'; | ||
useLayoutEffect(() => { | ||
if (!element) | ||
return; | ||
if (!element) return; | ||
observer.observe(element); | ||
@@ -148,3 +147,3 @@ return () => { | ||
function usePreviousState(value, init) { | ||
const ref = useRef(init != null ? init : value); | ||
const ref = useRef(value); | ||
useEffect(() => { | ||
@@ -151,0 +150,0 @@ ref.current = value; |
@@ -11,3 +11,3 @@ { | ||
"devDependencies": {}, | ||
"version": "0.0.58" | ||
"version": "0.0.59" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7314
213
2