📄️ App Setup
Demo
📄️ useSnap
Wraps an object in aproxy ta.
📄️ useProjectedSnap
Wraps an object in aproxy ta.
📄️ useMutator
Hook for mutating state.
📄️ useRootState
Wraps an object in aproxy ta.
📄️ Asynchronous Code
Using mutate()
📄️ Patch Handlers and Undo/Redo
At the heart of Diagon is object patch generation and those patches are used to accomplish reactivity. However, you also have access to those patches! Patches can be used to keep a state history, logging, undo/redo, time-travel, and persistence.