Executes a callback function when a specified transition occurs in a value.
This function utilizes the useDidTransition hook to monitor changes in currentValue.
When currentValue transitions from fromValue to toValue, the provided callback function is executed.
Executes a callback function when a specified transition occurs in a value.
This function utilizes the
useDidTransitionhook to monitor changes incurrentValue. WhencurrentValuetransitions fromfromValuetotoValue, the providedcallbackfunction is executed.