8 ms·
Does Immstruct use Immutable's cursors? If so, you'll still need to use .toArray() when dealing with a cursor to an array. React doesn't like what you get aft
by amccloud 12y ago
Does Immstruct use Immutable's cursors? If so, you'll still need to use .toArray() when dealing with a cursor to an array. React doesn't like what you get after mapping over an IndexedCursor.
- donw 12y agoIt does, but you can just .deref()
- amccloud 12y agoI'm usually looping over cursors I want to pass as a prop to a child component. Deref-ing there would sorta defeat the purpose of cursors.
- donw 12y agoAh, fair enough. I usually deref before handing the data off to the rendering chain, on the basis that future updates will just kick off another render loop.