Fork me on GitHub
#re-frame
<
2015-11-19
>
edbond16:11:38

What is register-sub ?

edbond16:11:15

how is it differs from subscribe?

mccraigmccraig16:11:50

@edbond: register-sub registers a function of db and some params which creates a reaction... subscribe passes the params and the re-frame machinery adds the db before calling the function registered with register-sub

edbond16:11:03

@mccraigmccraig: thanks. The readme is too long to navigate, maybe someone summarize it or there are API docs?

mccraigmccraig16:11:28

@edbond: there are fragment anchors and an index in the README - https://github.com/Day8/re-frame#subscribe

mikethompson22:11:33

@ebond: the README is long because it is a tutorial which answers the sort of questions you are now asking here simple_smile

mikethompson22:11:01

Also, be sure to also look at the todomvc example supplied.

mikethompson22:11:19

That is recomended at the end of the README, in the where-to-go-next section.

roberto23:11:55

it is worth reading the Readme.

roberto23:11:22

it doesn’t take long, 30 minutes max if you are as slow as me.

escherize23:11:49

It's probably one of the best readmes on github

richiardiandrea23:11:09

I found the README very useful too, you read it once and you are ready for all the reactive apps you will want to write in your life 😄