react-query-firebase / react-native/auth / useLinkWitRedirectMutation
Function: useLinkWitRedirectMutation()
ts
function useLinkWitRedirectMutation<TContext>(options): UseMutationResult<void, NativeFirebaseError, UseLinkWitRedirectMutationVariables, TContext>;
Defined in: react-native/auth/useLinkWithRedirect.ts:19
Custom hook for handling linking of Firebase account to auth provider This hook utilizes the useMutation
mechanism to perform the sign-in operation.
Type Parameters
TContext
TContext
= unknown
Parameters
options
Omit
<UseMutationOptions
<void
, ReactNativeFirebase.NativeFirebaseError
, UseLinkWitRedirectMutationVariables
, TContext
>, "mutationKey"
| "mutationFn"
> = {}
Optional configurations for the mutation, omitting the mutationKey and mutationFn properties.
Returns
UseMutationResult
<void
, NativeFirebaseError
, UseLinkWitRedirectMutationVariables
, TContext
>
The result object from the useMutation hook, containing the mutation function and its current state.