Merge pull request #4329 from matrix-org/travis/fix-breadcrumbs

Revert componentDidMount changes on breadcrumbs
This commit is contained in:
Travis Ralston 2020-04-01 14:13:39 -06:00 committed by GitHub
commit 9e14e2d77b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -44,7 +44,8 @@ const LeftPanel = createReactClass({
};
},
componentDidMount: function() {
// TODO: [REACT-WARNING] Move this to constructor
UNSAFE_componentWillMount: function() {
this.focusedElement = null;
this._breadcrumbsWatcherRef = SettingsStore.watchSetting(

View file

@ -49,7 +49,8 @@ export default class RoomBreadcrumbs extends React.Component {
this._scroller = createRef();
}
componentDidMount() {
// TODO: [REACT-WARNING] Move this to constructor
UNSAFE_componentWillMount() { // eslint-disable-line camelcase
this._dispatcherRef = dis.register(this.onAction);
const storedRooms = SettingsStore.getValue("breadcrumb_rooms");