@guruhotel/aura-hooks
Version:
🪝 Hooks library designed by the Guruhotel team for Aura UI
1 lines • 175 B
JavaScript
import{useEffect as r,useRef as t}from"react";export function useDidUpdate(e,n){const c=t(!1);r((()=>()=>{c.current=!1}),[]),r((()=>{if(c.current)return e();c.current=!0}),n)}