@knitui/hooks
useDidUpdate
Like useEffect, but skips the initial mount — port of Mantine's useDidUpdate. Runs fn only when dependencies change after the first render. Pure React, so identical on web and native.
WebiOSAndroid
Import
import { useDidUpdate } from "@knitui/hooks";Signature
export function useDidUpdate(fn: EffectCallback, dependencies?: DependencyList): void