async-state-type

Community

Safely model async data states in React/TS.

Authorncaq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Avoids contradictory state types for asynchronous data fetching in React/TypeScript, such as data being present while loading or error flags simultaneously; promotes type-safe patterns using Suspense or discriminated unions to ensure predictable rendering.

Core Features & Use Cases

  • Recommends Suspense-based data fetching to yield concrete data types during loading.
  • Provides a discriminated-union approach for non-Suspense scenarios.
  • Includes practical examples and guidance for code reviews and implementation.

Quick Start

Apply the Suspense pattern in your React components to ensure data types are definitive during loading.

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: async-state-type
Download link: https://github.com/ncaq/konoka/archive/main.zip#async-state-type

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