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.

Improve examples/tutorial to demonstrate list items using individual atoms

See original GitHub issue

The video demonstrates a list where each item is represented by its own atom. However, the tutorial does not do this, and thus it does not carry the same performance benefits that are explained in the video.

Perhaps we could update the examples/tutorial so it matches the content outlined in the video?

Whilst I’m here, how would you represent each todo item as its own atom? IIUC, the parent list component would add new todo items by adding a new ID to the list:

  const addItem = () => {
    setTodoIdList((oldTodoIdList) => [
      ...oldTodoIdList,
      getId(),
    ]);
    setInputValue('');
  };

… but the part I got stuck on was defining the initial text value for the new todo list item.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

3reactions
adrianbwcommented, Jul 20, 2020

Can I bump this? If I have an array of data that I want to make atomFamilies out of, what would the method be for that?

0reactions
ghostcommented, Jul 27, 2020

@adrianbw I am finally now able to take a look at this. That seems okay, your solution, but I can have an answer for you sometime this week. For this, if I am understanding you correctly, you want to produce atoms and you might need to make this a util class that is then exported. Then consume that class util to ultimately get the end result you would like to obtain. Again my answer might change as I will be testing this and I am sorry about the late response. Again disclaimer, very new to Recoil.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to PyMOL
Tutorial-specific data files found in the IntroductionToPyMOL subfolder of the ... with the mouse in the Display Area, the entire residue in which...
Read more >
3. Lists - Q for Mortals
A singleton is a list containing a single item. As any postal clerk will tell you, an item in a box is not...
Read more >
Mercury User Guide and Tutorials
Individual Molecules or Atoms by left-clicking on them. •. Right-click anywhere in the display area (atom, bond or background) and choose.
Read more >
Manipulating atoms one at a time with an electron beam
Researchers at MIT and elsewhere have found a way to manipulate the positions of individual atoms on a graphene sheet, which could be...
Read more >
Tutorials/Cimetidine - FOX, Free Objects for Crystallography Wiki
They are in the Fox/examples/tutorial-cimetidine directory. ... your crystal structure: in the Crystal, use the Display menu-> 3D Display.
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