reverse caching: PR grumbles

This commit is contained in:
Jannis R
2017-01-09 17:49:01 +01:00
parent 61a42cc7e4
commit cca7627fb8
2 changed files with 6 additions and 5 deletions

View File

@@ -20,6 +20,10 @@ const initialState = {
export default (state = initialState, action) => {
if (action.type === 'setReverse') {
if (state.reverse[action.address] === action.reverse) {
return state;
}
return { ...state, reverse: {
...state.reverse, [ action.address ]: action.reverse
} };