mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 06:58:25 +00:00
Update documentation for GroupStore.registerListener
This commit is contained in:
@@ -167,11 +167,12 @@ class GroupStore extends EventEmitter {
|
|||||||
* immediately triggers an update to send the current state of the
|
* immediately triggers an update to send the current state of the
|
||||||
* store (which could be the initial state).
|
* store (which could be the initial state).
|
||||||
*
|
*
|
||||||
* This also causes a fetch of all data of the specified group,
|
* If a group ID is specified, this also causes a fetch of all data
|
||||||
* which might cause 4 separate HTTP requests, but only if said
|
* of the specified group, which might cause 4 separate HTTP
|
||||||
* requests aren't already ongoing.
|
* requests, but only if said requests aren't already ongoing.
|
||||||
*
|
*
|
||||||
* @param {string} groupId the ID of the group to fetch data for.
|
* @param {string?} groupId the ID of the group to fetch data for.
|
||||||
|
* Optional.
|
||||||
* @param {function} fn the function to call when the store updates.
|
* @param {function} fn the function to call when the store updates.
|
||||||
* @return {Object} tok a registration "token" with a single
|
* @return {Object} tok a registration "token" with a single
|
||||||
* property `unregister`, a function that can
|
* property `unregister`, a function that can
|
||||||
|
|||||||
Reference in New Issue
Block a user