You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Improve _addMatrixClientListener docs
This commit is contained in:
@@ -81,8 +81,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start listening to events emitted by matrixClient, dispatch an action created by the
|
* Start listening to events of type eventName on matrixClient and when they are emitted,
|
||||||
* actionCreator function.
|
* dispatch an action created by the actionCreator function.
|
||||||
* @param {MatrixClient} matrixClient a MatrixClient to register a listener with.
|
* @param {MatrixClient} matrixClient a MatrixClient to register a listener with.
|
||||||
* @param {string} eventName the event to listen to on MatrixClient.
|
* @param {string} eventName the event to listen to on MatrixClient.
|
||||||
* @param {function} actionCreator a function that should return an action to dispatch
|
* @param {function} actionCreator a function that should return an action to dispatch
|
||||||
|
|||||||
Reference in New Issue
Block a user