refactor: Make all reducers sync (#4125)
This commit is contained in:
parent
f68fa930ea
commit
37c832cdf7
8 changed files with 18 additions and 90 deletions
|
@ -14,6 +14,10 @@ import status_lists from './status_lists';
|
|||
import cards from './cards';
|
||||
import reports from './reports';
|
||||
import contexts from './contexts';
|
||||
import compose from './compose';
|
||||
import search from './search';
|
||||
import media_attachments from './media_attachments';
|
||||
import notifications from './notifications';
|
||||
|
||||
const reducers = {
|
||||
timelines,
|
||||
|
@ -31,13 +35,10 @@ const reducers = {
|
|||
cards,
|
||||
reports,
|
||||
contexts,
|
||||
compose,
|
||||
search,
|
||||
media_attachments,
|
||||
notifications,
|
||||
};
|
||||
|
||||
export function createReducer(asyncReducers) {
|
||||
return combineReducers({
|
||||
...reducers,
|
||||
...asyncReducers,
|
||||
});
|
||||
}
|
||||
|
||||
export default combineReducers(reducers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue