AriaFallah / mobx-store

A data store with declarative querying, observable state, and easy undo/redo.
MIT License
282 stars 9 forks source link

Complete example ? #49

Closed jbrodriguez closed 7 years ago

jbrodriguez commented 8 years ago

Could you share the code for the demo ?

AriaFallah commented 8 years ago

@jbrodriguez

The demo was made a while ago, and the library is currently in a really weird place...I'll keep this issue open and get back to you when I have something presentable.

jbrodriguez commented 8 years ago

@AriaFallah sure, I realized later that something was off when I saw that "destroy store concept" commit :)

AriaFallah commented 8 years ago

@jbrodriguez

Yeah when I made the very first iteration of the library there was no spy API, and MobX had just come out. The only way to do anything I wanted was to couple everything to a store object.

Once I switched to using spy to enable deep observation for undo/redo, I realized that the whole store construct was completely unnecessary, and I began moving away from it. Now all you're left with is undo, redo, and chain as utilities.

Not sure what to even call the library now.

AriaFallah commented 7 years ago

Look to https://github.com/mobxjs/mobx-state-tree