You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{useStateRef,useReducerRef,useDebounce,useStateDebounce}from'react-hooks-extension';const[state,setState,stateRef]=useStateRef('init value');const[data,dataDispatch,dataRef]=useReducerRef((prevData,action)=>{},{data: 'init value'});constdelayFunction=useDebounce(useCallback(()=>{// do something delay},[]),2000,useCallback(()=>{// do something first},[]),);const[keywords,setKeywords,keywordsDelay,setKeywordsDelay]=useStateDebounce('',2000);