Fix first loading of notifications when the column is pinned (#4114)
This commit is contained in:
parent
76318f8830
commit
46f5d3a2e9
2 changed files with 4 additions and 8 deletions
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue