usePrevious<T> function

T usePrevious <T>(
  1. T val
)

Returns the previous argument called to usePrevious.

Implementation

T usePrevious<T>(T val) {
  return use(_PreviousHook(val));
}