consume is a better API than memoize because it can prevent re-renders from unrelated state updates and unrelated prop updates. It lets the Consumer say "here are some values that I consume"
I also renamed selectors to select so that it's language consistent (consume this, select this)
consume
is a better API thanmemoize
because it can prevent re-renders from unrelated state updates and unrelated prop updates. It lets the Consumer say "here are some values that I consume"I also renamed
selectors
toselect
so that it's language consistent (consume this, select this)