Search...
A React Hook for detecting dependencies that have actually changed between renders.
Try to open DevTools to see the logs.
{ "name": "John Doe", "age": 30 } count: 0
See API for more details.
Click links below to view source on GitHub.
useTrackedEffect(callback, deps)
export type TrackedEffectCallback = (changedDepIndexes: number[], previousDeps?: Deps, currentDeps?: Deps) => void
Same as React.useLayoutEffect.