Custom hook to create an action reference.
The initial action function.
An object implementing ActionRef.
Custom hook to create an action reference.