useDeepCompareLayoutEffect

Same as useDeepCompareEffect, but use useLayoutEffect instead of useEffect.

Demo

Source
Count:
0

Usage

See API for more details.

Source

Click links below to view source on GitHub.

API

useDeepCompareLayoutEffect(callback, deps)

Callback

Same as React.useLayoutEffect.

Deps

Same as React.useLayoutEffect.