We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816dcf5 commit ea7af60Copy full SHA for ea7af60
1 file changed
packages/amos-core/src/store.ts
@@ -53,10 +53,10 @@ export interface Store {
53
snapshot: () => Readonly<Snapshot>;
54
55
/**
56
- * Subscribe the update of the store. The event contains all mutated boxes
57
- * and its original state.
+ * Subscribe to store updates.
58
*
59
- * It only will be fired after the root dispatch completed.
+ * The provided listener is called with no arguments after the root
+ * dispatch has finished processing all mutations.
60
*/
61
subscribe: (fn: () => void) => Unsubscribe;
62
0 commit comments