You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Update AsyncStore's docs to be slightly more clear
This commit is contained in:
@@ -29,9 +29,11 @@ export const UPDATE_EVENT = "update";
|
|||||||
* of everything needing to happen in a dispatch cycle, everything can
|
* of everything needing to happen in a dispatch cycle, everything can
|
||||||
* happen async to that cycle.
|
* happen async to that cycle.
|
||||||
*
|
*
|
||||||
* The store's core principle is Object.assign(), therefore it is recommended
|
* The store operates by using Object.assign() to mutate state - it sends the
|
||||||
* to break out your state to be as safe as possible. The state mutations are
|
* state objects (current and new) through the function onto a new empty
|
||||||
* also locked, preventing concurrent writes.
|
* object. Because of this, it is recommended to break out your state to be as
|
||||||
|
* safe as possible. The state mutations are also locked, preventing concurrent
|
||||||
|
* writes.
|
||||||
*
|
*
|
||||||
* All updates to the store happen on the UPDATE_EVENT event channel with the
|
* All updates to the store happen on the UPDATE_EVENT event channel with the
|
||||||
* one argument being the instance of the store.
|
* one argument being the instance of the store.
|
||||||
|
|||||||
Reference in New Issue
Block a user