Skip to content

Commit

Permalink
Merge 39850d2 into 77ced5e
Browse files Browse the repository at this point in the history
  • Loading branch information
lyonlai committed Nov 5, 2015
2 parents 77ced5e + 39850d2 commit 9f3391a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/reactor/fns.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,13 @@ function isCached(reactorState, keyPathOrGetter) {
return false
}

return entry.get('storeStates').every((stateId, storeId) => {
const storeStates = entry.get('storeStates');

if(!storeStates || storeStates.size <= 0) {
return false;
}

return storeStates.every((stateId, storeId) => {
return reactorState.getIn(['storeStates', storeId]) === stateId
})
}
Expand Down

0 comments on commit 9f3391a

Please sign in to comment.