Fix first loading of notifications when the column is pinned (#4114)
This commit is contained in:
1 parent
76318f8830
commit
46f5d3a2e9
2 files changed
+4
-8
No files matched your search
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user