question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Selector" is a confusing term - I propose to call it "Molecule"

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:27
  • Comments:7

github_iconTop GitHub Comments

6reactions
AjaxSolutionscommented, Jun 1, 2020

Call it derivation or computed since this is derived state.

3reactions
philohelpcommented, Jun 10, 2020

(from electronics) : “combiners” ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

sveta.slepner on Twitter: ""Selector" is a confusing term If it's a ...
"Selector" is a confusing term If it's a selector, why can it set value? ... "Selector" is a confusing term - I propose...
Read more >
ABEM. A more useful adaptation of BEM. | CSS-Tricks
Molecules are small groups of elements and/or components (e.g. a single form field showing a label and an input field). Organisms are large ......
Read more >
Exploiting Quorum Sensing To Confuse Bacterial Pathogens
An antivirulence approach by which quorum sensing is impeded has caught on as a viable means to manipulate bacterial processes, especially pathogenic traits ......
Read more >
Definition of molecule - NCI Dictionary of Cancer Terms
If they contain more than one atom, the atoms can be the same (an oxygen molecule has two oxygen atoms) or different (a...
Read more >
Infrared Spectroscopy - IFSC/USP
The four-atom molecule of formaldehyde, the gas phase spectrum of which is shown below, provides an example of these terms. If a ball...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found