generate_hook
Generate TypeScript React hooks for @appolabs/appo SDK features like push notifications, biometrics, and device APIs with built-in loading and error state management.
Instructions
Generate a custom React hook for an @appolabs/appo SDK feature. Returns TypeScript code with types, error handling, and loading states.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature | Yes | The SDK feature to generate a hook for | |
| hookName | No | Custom hook name (optional, defaults to use{Feature}) | |
| includeLoading | No | Include loading state management (default: true) | |
| includeError | No | Include error state management (default: true) |