usePrevious<T> function

T usePrevious <T>(T val)

Returns the previous argument called to usePrevious.

Implementation

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