Fork me on GitHub
#om
<
2016-10-31
>
pkova01:10:51

hey guys, beginner question here! any idea why the winner component is not rendering here:

pkova01:10:27

while this seems to work:

pkova01:10:14

winner is returning stuff wrapped in a single div in both instances, but only the second example renders anything

pkova06:10:25

ah, figured it out, was missing {:keyfn :id} as the second parameter to om/factory

snoonan18:10:22

Om.next question; I have my app working and want to have (branching) undo in it, so I make a history atom to hold it all. Now I want to make the rendering of history look nice, I am using om, so I want to keep doing so. Now I have a problem, I want to render the history under a node rendered by the apps om root. Does this work, or is there a better way? I guess I could keep history in the app atom, but that gets oddly recursive and I can't wrap my head around how to walk forward and backwards from there. Suggestions?