jotai-reactive-atoms

star 1

Implement reactive state management with Jotai atoms in Electron renderer. Use when creating atoms with real-time IPC updates or hybrid stream + HTTP patterns.

naporin0624 By naporin0624 schedule Updated 1/27/2026

name: jotai-reactive-atoms description: Implement reactive state management with Jotai atoms in Electron renderer. Use when creating atoms with real-time IPC updates or hybrid stream + HTTP patterns. allowed-tools: Read, Write, Edit, Grep, Glob

Jotai Reactive Atoms

Patterns

Pattern Use Case Details
Hybrid Atom Real-time + HTTP fallback HYBRID-ATOM.md
Stream Atom IPC subscriptions EVENT-SUBSCRIPTION.md
Write Atom CRUD mutations WRITE-ATOM.md

Key Rules

  1. Hybrid atom getter must NOT be async - use sync conditional
  2. Always debounce IPC handlers - prevent UI thrashing
  3. Refresh read atoms after mutations - set(singleFetchAtom)

Quick Example

// Hybrid selector (sync, NOT async)
export const usersAtom = atom((get) => {
  const stream = get(streamAtom);
  return stream !== undefined ? stream.value : get(singleFetchAtom);
});

Related

Install via CLI
npx skills add https://github.com/naporin0624/claude-plugin-hono-electron --skill jotai-reactive-atoms
Repository Details
star Stars 1
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator