Fork me on GitHub
#reagent
<
2019-01-21
>
borkdude16:01:30

I’ve been using reagent for about 4+ years now, but today is the first day I used cursors 😉

borkdude20:01:30

what does this mean about rswap! ? allows recursive applications of rswap! on the same atom

gws21:01:19

I still refer to these old release notes to answer questions like that from time to time: https://reagent-project.github.io/news/news060-alpha.html - look for "Event handling with rswap!", there's some detail in that section

gws21:01:16

The relevant bit, I think: >This simple application could probably just as well use the common swap! instead of rswap!, but using swap! in React’s event handlers may trigger warnings due to unexpected return values, and may cause severe headaches if an event handler called by emit itself emits a new event (that would result in lost events, and much confusion). > >For a more structured version of a similar approach, see the excellent re-frame framework.