feature-mcp-connect hooks
The components already use these hooks. Reach for them when you build your own UI on the same data. Open a hook for its options and what it returns.
Other hooks
useConnectFormThe binding for a login form while a client connects.
import { useConnectForm } from "@evolve-storefront/feature-mcp-connect/hooks";function useConnectForm( options: UseConnectFormOptions,): ConnectFormBinding| Option | Type | Description |
|---|---|---|
signIn | (values: { email: string; password: string; }) => Promise<TypedError[]> | Signs in for the client, and answers why the customer was refused. |
resolveError | ResolveErrorCode | Words for an error code: |
Returns ConnectFormBinding

