You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of making the parameter object itself optional, we can use the solution employed in the referenced PR to default which will effectively make it optional too
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
when useSingleRequestParameter has all optional parameters, an empty object still has to be passed producing
myApiCall({})
Describe the solution you'd like
Functions with all optional parameters should include a default empty object parameter to make it optional instead of
myApiCall({})
When the default is in place, we can instead use
myApiCall()
See #6477 and related #6440
Describe alternatives you've considered
Instead of making the parameter object itself optional, we can use the solution employed in the referenced PR to default which will effectively make it optional too
Additional context
The text was updated successfully, but these errors were encountered: