AppmakerDeveloper

useLogin

This hook is used to get handle login functionality.

propsTypeDescriptionExample
controlObjectThis is the react-hook-form control object
handleSubmitFunctionhandle submit
formStateObjectThis is the react-hook-form formState object
submitLoginFunctionsubmit login
isLoadingBooleanloading statefalse

Usage

import { useLogin } from '@appmaker-xyz/shopify';

const {
  control,
  handleSubmit,
  formState,
  submitLogin,
  isLoading,
} = useLogin();

On this page