compose-hooks

Community

React-style hooks for Jetpack Compose.

Authorjunerver
Version1.0.0
Installs0

System Documentation

What problem does it solve?

ComposeHooks 为 Jetpack Compose/Compose Multiplatform 提供了一套 React Hook 风格的状态管理和副作用处理能力,帮助开发者在跨平台的 Compose 项目中更高效地管理组件状态、处理副作用、以及进行网络请求与数据处理。

Core Features & Use Cases

  • 提供常用 hooks(如 useState、useGetState、useReducer、useEffect、useMount、useUnmount、useRequest 等)以简化状态与副作用的管理
  • 支持节流/防抖、列表和映射状态、定时器、全局状态管理以及无头表格等场景
  • 适用于跨平台 Compose 项目,提升开发效率与代码可维护性
  • 实际用例:在一个 Compose Multiplatform 应用中,通过 useRequest 处理网络请求并通过 useDebounce/useThrottle 优化用户输入与滚动等场景

Quick Start

安装并在你的 Composable 中引入 ComposeHooks,开始使用 useState、useEffect 等 Hook 来管理状态和副作用。

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: compose-hooks
Download link: https://github.com/junerver/ComposeHooks/archive/main.zip#compose-hooks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.