using-efficient-effects

Community

Pick the cheapest correct Compose effect API.

Authorskydoves
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Compose requires choosing among LaunchedEffect, DisposableEffect, SideEffect, RememberedEffect, and ViewModelStoreScope to implement effects efficiently. This skill helps you pick the cheapest correct API for the scenario and avoid common pitfalls like stale callbacks and unnecessary coroutine scopes.

Core Features & Use Cases

  • Decision tree guidance to select among LaunchedEffect, DisposableEffect, RememberedEffect, SideEffect, and ViewModelStoreScope based on the task (long-running work, setup/teardown, synchronous key reactions, or per-row ViewModel needs).
  • Patterns for managing stale callbacks with rememberUpdatedState and for per-item ViewModels in LazyColumn using ViewModelStoreScope.
  • Best practices for avoiding per-frame work in SideEffect and for using RememberedEffect for synchronous key reactions.

Quick Start

Describe your Compose scenario and have the agent recommend and implement the most appropriate effect API (LaunchedEffect, DisposableEffect, RememberedEffect, SideEffect, or ViewModelStoreScope) for that case.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: using-efficient-effects
Download link: https://github.com/skydoves/compose-performance-skills/archive/main.zip#using-efficient-effects

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 510,000+ vetted skills library on demand.