mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 09:21:55 +02:00
Update AsyncStore's docs to be slightly more clear
This commit is contained in:
parent
b7ba9b3c41
commit
5cfe29de66
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user