Fork me on GitHub
#re-frame
<
2015-07-07
>
simax9912:07:06

@petrus: From the re-frame readme: You pass parameters to subscribe like so:

(subscribe  [query-id some optional query parameters])
As far as deref'ing is concerned, in your example, if the parent-component doesn't render anything regarding contacts but the child does, then you can subscribe and deref in the child.

Petrus Theron13:07:06

and these optional parameters get called in the register-sub handler?

simax9913:07:37

They're available in register-sub handler. I did a little test and you appear to receive a vector containing the query-id and the optional parameters.