dojo-state
Installation
SKILL.md
Dojo.js State Management
When to Use
Use this skill when:
- Setting up the Zustand store for game state
- Accessing entities from the store
- Implementing optimistic updates
- Working with historical entity data
Store Setup
import { createDojoStore } from "@dojoengine/sdk/react";
import type { GameState } from "@dojoengine/state/zustand";
// Create typed store
const useDojoStore = createDojoStore<typeof schema>();