You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! Can I nest one selector inside result function of another selector? Would every instance of nested selector be memoized?
example:
const itemComputedSelector = (key) => createSelector(
// some stuff, return computed data
)
export default createSelector(
state => state,
itemsSelector // return ['A', 'B', 'C'],
(state, items) => (
items.map((itemKey) => itemComputedSelector(itemKey)(state)
// and some stuff with result array, and return this array
)
)
Nantris, borispinus, borkanee, leniel, towry and 2 more