Lee Bannard

Results comments of Lee Bannard

You can combine selectors as follows: ``` js export const computedStateSelector = createSelector( state => state.A, state => state.B, (A, B) => { return state.A + state.B }) export const...

`computedStateSelector` will recalculate when its arguments change which are state.A and state.B. When C changes but not A or B, `computedStateSelector` will return the cached value of A + B...

`selectDenorm` will only return a referentially different value if its arguments have changed (i.e. selectObjectById or selectIds). Looks to me that you should be using a custom equality check for...

Can provide me with some code that I can run which demonstrates the problem? I'm super busy right now, and I think that will be the quickest way for me...

Right, I get it now. In my initial reply I was missing the new object that is added. (Your clarifying comment was actually very thorough and clear now I have...

I think my preference for now is to leave the default behaviour the same, and instead I'll suggest creating a selector creator with a custom memoize function: ``` js function...

Hi, I'm not sure I understand the problem. The following works as I would expect: ``` js import { createSelector } from 'reselect' const mySelector = createSelector( state => state.assets,...

Isn't this going to be the case for any parameter that is a function that you try to stub out like this? E.g. ``` js const sinon = require('sinon') const...

Sorry, I didn't explain myself at all well there. What I meant was that I don't understand why stubbing would be better than passing `otherSelector` state that is known to...