Fork me on GitHub
#re-frame
<
2016-10-30
>
curlyfry12:10:10

@wielderofmjolnir @shaun-mahood Why is the doall block there?

curlyfry12:10:30

Just the map should work fine.

wielderofmjolnir12:10:26

@curlyfry It's to force evaluation. I first did map, but it gives of a warning: > Reactive deref not supported in lazy seq, it should be wrapped in doall: So the deref of active-tab requires it, I think 🙂

curlyfry13:10:38

@wielderofmjolnir Huh, never seen that! Probably just haven't derfed in a map/for in my projects.

wielderofmjolnir14:10:32

@curlyfry You're comment made me realize I should probably just use a local variable to hold the dereffed value outside of the doall, instead of dereffing it for every item, since the @active-tab stays the same through the loop. Insane performance gain right there!