asyncredux-optimistic-update-mixin
Installation
SKILL.md
Optimistic Update Mixins
AsyncRedux provides three optimistic update mixins for different scenarios:
| Mixin | Use Case |
|---|---|
OptimisticCommand |
One-time operations (create, delete, submit) with rollback |
OptimisticSync |
Rapid toggling/interactions with coalescing |
OptimisticSyncWithPush |
Real-time server push scenarios with revision tracking |
OptimisticCommand
Use for one-time server operations where immediate UI feedback matters: creating todos, deleting items, submitting forms, or processing payments.
Basic Example
Without optimistic updates (user waits for server):