Fork me on GitHub
#re-frame
<
2023-02-06
>
Samy Rabah-Montarou16:02:00

Hello guys ! Quick question, does reframe handles lazy sequence well ? I have a for which loops over items from a subscription. Should I wrap this loop in a doall to make sure all items are re-rendered properly?

Samy Rabah-Montarou16:02:48

Found this tip here, but it focuses on reagent so Im not sure it’s still necessary in reframe

p-himik16:02:53

Re-frame uses Reagent. Whatever's necessary in Reagent is also necessary in re-frame. If you use (for ...) to generate children for some element, Reagent will definitely complain about missing keys. Has nothing to do with re-frame.

p-himik16:02:34

And re-frame's subscribe returns a plain Reagent's reaction, there's nothing special about it apart from caching, but it shouldn't affect the usage of for.