useCallback

inline fun <T : Function<*>> useCallback(vararg dependencies: Any?, callback: T): T(source)

Only works inside fc

See also