jotai-x

Coordinate Jotai X atom stores across React components with persistence.

434|33|Updated Jul 27, 2025
One-click install
npx skills add https://github.com/udecode/better-convex --skill jotai-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jotai-x
Source: https://github.com/udecode/better-convex/tree/main/.claude/skills/jotai-x
Command: npx skills add https://github.com/udecode/better-convex --skill jotai-x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing Jotai X stores across components, establishing a consistent source of truth and simplifying access to persisted state.

Core Features & Use Cases

  • Create and access Jotai X stores (createAtomStore) across components without prop drilling.
  • Persist state to cookies or localStorage to maintain user selections across sessions.
  • Use in callbacks where state needs to be read or updated in React event handlers or effects.

Quick Start

Initialize and coordinate Jotai X stores across your app by calling initializeInJotaiXStore() and letting the framework manage state.

Frequently Asked Questions about jotai-x

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I share Jotai atom stores across React components without prop drilling?

To share Jotai atom stores across React components without prop drilling, use createAtomStore to establish a consistent source of truth and access state directly within components.

Can I persist Jotai state to localStorage or cookies?

Yes, you can persist Jotai state to localStorage or cookies to maintain user selections across sessions by applying simple persistence logic to your atom stores.

How do I read or update Jotai state inside React event handlers and callbacks?

You can read or update Jotai state inside React event handlers and callbacks by accessing the coordinated atom store, ensuring state consistency without direct prop passing.

What is the best way to coordinate in-app state orchestration with Jotai?

The best way to coordinate in-app state orchestration with Jotai is calling initializeInJotaiXStore() to let the framework manage cross-component consistency and state synchronization.

Does coordinating Jotai stores require additional dependencies?

No, coordinating Jotai stores requires no additional dependencies, allowing you to establish a consistent source of truth and simplify access to persisted state natively.