mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-28 09:52:16 +02:00
Improve _addMatrixClientListener docs
This commit is contained in:
parent
31ea092d99
commit
fe6b7c0ea2
@ -81,8 +81,8 @@ export default {
|
||||
},
|
||||
|
||||
/**
|
||||
* Start listening to events emitted by matrixClient, dispatch an action created by the
|
||||
* actionCreator function.
|
||||
* Start listening to events of type eventName on matrixClient and when they are emitted,
|
||||
* dispatch an action created by the actionCreator function.
|
||||
* @param {MatrixClient} matrixClient a MatrixClient to register a listener with.
|
||||
* @param {string} eventName the event to listen to on MatrixClient.
|
||||
* @param {function} actionCreator a function that should return an action to dispatch
|
||||
|
Loading…
x
Reference in New Issue
Block a user