Skip to content

react-query-firebase / react-native/auth / useUpdateProfileMutation

Function: useUpdateProfileMutation()

ts
function useUpdateProfileMutation<TContext>(options): UseMutationResult<void, NativeFirebaseError, UseUpdateProfileMutationVariables, TContext>;

Defined in: react-native/auth/useUpdateProfileMutation.ts:18

Custom hook to manage the mutation for updating a user's profile. Utilizes Firebase for updating the user's display name.

Type Parameters

TContext

TContext = unknown

Parameters

options

Omit<UseMutationOptions<void, NativeFirebaseError, UseUpdateProfileMutationVariables, TContext>, "mutationKey" | "mutationFn"> = {}

Configuration options for the mutation, excluding mutationKey and mutationFn.

Returns

UseMutationResult<void, NativeFirebaseError, UseUpdateProfileMutationVariables, TContext>

The result of the mutation operation including statuses, data, and error information.

Released under the MIT License.