refactor: Make all reducers sync (#4125)
This commit is contained in:
parent
f68fa930ea
commit
37c832cdf7
8 changed files with 18 additions and 90 deletions
|
@ -23,7 +23,7 @@ import {
|
|||
COMPOSE_EMOJI_INSERT,
|
||||
} from '../actions/compose';
|
||||
import { TIMELINE_DELETE } from '../actions/timelines';
|
||||
import { STORE_HYDRATE_LAZY } from '../actions/store';
|
||||
import { STORE_HYDRATE } from '../actions/store';
|
||||
import Immutable from 'immutable';
|
||||
import uuid from '../uuid';
|
||||
|
||||
|
@ -134,7 +134,7 @@ const privacyPreference = (a, b) => {
|
|||
|
||||
export default function compose(state = initialState, action) {
|
||||
switch(action.type) {
|
||||
case `${STORE_HYDRATE_LAZY}-compose`:
|
||||
case STORE_HYDRATE:
|
||||
return clearAll(state.merge(action.state.get('compose')));
|
||||
case COMPOSE_MOUNT:
|
||||
return state.set('mounted', true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue