0
0
Fork 0

Fix first loading of notifications when the column is pinned (#4114)

This commit is contained in:
unarist 2017-07-09 00:22:24 +09:00 committed by Eugen Rochko
parent 76318f8830
commit 46f5d3a2e9
2 changed files with 4 additions and 8 deletions

View file

@ -1,4 +1,5 @@
import { store } from '../../../containers/mastodon';
import { refreshNotifications } from '../../../actions/notifications';
import { injectAsyncReducer } from '../../../store/configureStore';
// NOTE: When lazy-loading reducers, make sure to add them
@ -30,6 +31,8 @@ export function Notifications () {
]).then(([component, notificationsReducer]) => {
injectAsyncReducer(store, 'notifications', notificationsReducer.default);
store.dispatch(refreshNotifications());
return component;
});
}