You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Some sarcastic comments
This commit is contained in:
@@ -42,6 +42,9 @@ class MatrixDispatcher extends flux.Dispatcher {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// XXX this is a big anti-pattern, and makes testing hard. Because dispatches
|
||||||
|
// happen asynchronously, it is possible for actions dispatched in one thread
|
||||||
|
// to arrive in another, with *hilarious* consequences.
|
||||||
if (global.mxDispatcher === undefined) {
|
if (global.mxDispatcher === undefined) {
|
||||||
global.mxDispatcher = new MatrixDispatcher();
|
global.mxDispatcher = new MatrixDispatcher();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user