Open sveta-slepner opened 4 years ago
Call it derivation or computed since this is derived state.
If you're going to stick with the chemistry theme and aren't worried about people constantly misspelling the word, might I suggest catalyst? While selectors don't speed up the process of combining atoms as catalysts do, they are involved in the reaction of combining other atoms and aren't consumed in that reaction.
(from electronics) : "combiners" ?
Call it derivation or computed since this is derived state.
Derivation being a noun, I think it works better.
molecule is not confusing at all, perfectly clear what that does
Yes, selector and family is really confusing term.
🤮
Since in Recoil selectors can optionally set other atoms values, I think a more fitting name for them would be
molecule
- it's constructed of other atoms values, and can update them as well!It took me a minute or two to wrap my head around when reading the doc - why a selector can change state parts? And it's because it's just not the same as let's say "reselect" in Redux or "@computed" in MobX. It's more complex.