gpui-entity
CommunitySafely manage GPUI entity state with reactivity.
Authorzerx-lab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
GPUI applications often struggle with safe, concurrent access to component and shared state. This Skill provides patterns and examples to manage entity state reliably, avoiding race conditions and borrow issues while enabling reactive updates.
Core Features & Use Cases
- Entity<T> and WeakEntity<T> abstractions for strong and weak references
- Read, read_with, and update operations with an inner context
- Async state handling, observers, and event coordination patterns
- Common patterns: transactions, cascading updates, and parent-child communication
- Real-world use cases include component local state, shared state, and cross-entity communication
Quick Start
Create an Entity<Counter> with initial state { count: 0 }, then increment to demonstrate safe updates.
Dependency Matrix
Required Modules
None requiredComponents
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: gpui-entity Download link: https://github.com/zerx-lab/rmx/archive/main.zip#gpui-entity Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.