When I try to use memoize nested the result is not correctly deproxyfied.
Is there something wrong with doing
const selectSomeContext = memoize((state, contextId) => state.foo.contexts[contextId]);
const selectSomethingRequiringContext = memoize((state, contextId) => {
const context = selectSomeContext(state, contextId);
return state.bar[context.currentSetting].map(x => x.val);
});
I expected the result to be deproxyfied as normal, but in the above scenario the resulting array would be still wrapped in its proxy.
I know I could just do state.foo.contexts[contextId] inside selectSomethingRequiringContext, but thats only the most basic example.
When I try to use memoize nested the result is not correctly deproxyfied.
Is there something wrong with doing
I expected the result to be deproxyfied as normal, but in the above scenario the resulting array would be still wrapped in its proxy.
I know I could just do
state.foo.contexts[contextId]insideselectSomethingRequiringContext, but thats only the most basic example.