Fork me on GitHub
#reagent
<
2016-12-04
>
martinklepsch10:12:18

@borkdude This is the critical bit: > One peculiarity about the props function is that it expects the props data to be the first argument to your function. Also it has to be a map (if it’s not props returns nil).

Jacobin15:12:45

quick q: do you even need something like redux-saga in reagent/re-frame? - are there any examples that solve similar kinds of problems (an event which waits for an async request and dispatches more events)

curlyfry15:12:14

@cmal Article with the general pattern to use + links to some D3 examples: https://github.com/Day8/re-frame/blob/master/docs/Using-Stateful-JS-Components.md

wasser19:12:50

@gadfly361: great meeting you over lunch at Iron Works yesterday. It just clicked where I recognized your handle from (I'm a bit slow sometimes 😊)

gadfly36119:12:48

Great meeting you too! I can be a bit shy sometimes, but thank you for letting me sit with you all :)

mikethompson20:12:27

@ashconnor yes, that pattern works (a very simple state machine). For something more complicated see re-frame-async-flow

danielcompton21:12:43

@ashconnor there is https://github.com/Day8/re-frame-async-flow-fx as one option for state machine type things