Resolves the given set-state action to a value by calling the action with the previous value if it as a callback-type action or by simply returning the action if it is a value.
The previous state value.
The SetStateAction to resolve.
Only works for non-function type states.
Resolves the given set-state action to a value by calling the action with the previous value if it as a callback-type action or by simply returning the action if it is a value.