-
Notifications
You must be signed in to change notification settings - Fork 74
Roadmap
-
Support Non-singleton dispatcher.
-
Middleware - a mechanism to extend the functionality of dispatcher allowing for advanced asynchronous workflow and integration with visual component like FileDialog.
-
Store - A replacement of AppListener that could listen from non-singleton dispatcher, and re-dispatch the action message to another Store components sequentially. It could avoid the over-complicated
waitFor
mechanism. -
Hydration - Serialize and deserialize a store to/from a QVariantMap object.
-
MiddlewareList & Middleware
-
Store
-
Hydrate
See Reference Document for details
https://bugreports.qt.io/browse/QTBUG-58133
Multiple singleton Stores
Store {
id: bridge
stores: [
PhotoAlbumStore,
NavigationStore
]
}
A single singleton Store
Store {
id: rootStore
property alias photoAlbum: photoAlbum
PhotoAlbumStore {
id: photoAlbum
}
property alias navigationStore: navigation
NavigationStore {
id: navigation
}
}
Hydrate is responsible for taking a snapshot of store and restore back to any state. It may be used with ViewStack.pri (a stateful StackView) to simulate different condition of UI.
var snapshot = Hydrate.dehydrate(MainStore); // Convert the data field of MainStore into a JSON object
...
Hydrate.rehydrate(MainStore, snapshot1); //
...
Hydrate.rehydrate(MainStore, snapshot2);