Skip to content
generated from NiGhTTraX/ts-monorepo

Mutable state management for object graphs and React

License

Notifications You must be signed in to change notification settings

akutruff/diagon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

694831e · Aug 30, 2022
Aug 9, 2022
Aug 30, 2022
Aug 30, 2022
Aug 30, 2022
Aug 30, 2022
Aug 19, 2022
Aug 9, 2022
Aug 9, 2022
Aug 9, 2022
Aug 30, 2022
Aug 30, 2022
Aug 30, 2022
Aug 18, 2022
Aug 9, 2022
Aug 9, 2022
Aug 12, 2022

Repository files navigation

Build Status Build Size Version Downloads

Diagon

State-management designed to minimize renders while staying out of your way and letting you write natural mutable code without sacrificing object references.

npm install diagon diagon-react # core and react bindings

Full React sandbox here and sample app here

Read the Full Documenation

diagon

✅ Object change recording
✅ Property change subscriptions
✅ Mutable coding style
✅ Object graphs with shared references
✅ Cyclic references
✅ Map, Set, and Array
✅ Time travel with undo/redo built-in
✅ Transparent to 3rd party libraries

diagon-react

✅ Re-renders components only if state changes
✅ Prevents parent re-renders
✅ Async mutation with rendering control
✅ Allows almost all your components to be wrapped in React.Memo
✅ React 18 support with useSyncExternalStore
✅ Render batching
⬛ Concurrent Mode (may work but needs testing)

About

Mutable state management for object graphs and React

Resources

License

Stars

Watchers

Forks

Packages

No packages published