Store is similar to the concept of redux. It internally implements the functions of redo, undo, publish and subscribe, replace data, forced refresh and so on.
At the beginning, it is necessary to combine usestorestate with react. At this time, store can be used anywhere Forceupdate can also use state to obtain the data in the store.
The most important function of JSON is to save the queue every time.
You can get the time of component registration in the event center. Timing is similar to the component life cycle. It can be called at the corresponding timing after registration.
The functions in the function center will be combined with the timing, and then the event chain will uniformly process the queue set by the user.
Each event chain will have a context object during execution, which will run through the event chain.
### Command
The commands of dooringx lib are managed by the commander.
Redo and undo commands are provided internally by default. You can add a commander through a plug-in.
The commander integrates shortcut key configuration internally, and uses the keys of keyboard events for registration. If Ctrl, ALT and meta keys are used, the corresponding plus sign can be added for key combination registration, and the case is ignored internally (note! The case of the registered key name is not ignored, but the key processing of a and a is equivalent).