Deprecated
- Don't use this hook, it's an anti-pattern. Custom hook that runs an effect only on updates (not on the initial render).
import { useUpdateEffect } from "https://deno.land/x/netzo@0.4.72/deps/usehooks-ts.ts";
Examples
// Usage of useUpdateEffect hook
useUpdateEffect(() => {
// Effect code to run on updates
console.log('Component updated!');
}, [dependency1, dependency2]);
// Usage of useUpdateEffect hook useUpdateEffect(() => { // Effect code to run on updates console.log('Component updated!'); }, [dependency1, dependency2]);