This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-07
Channels
@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.and these optional parameters get called in the register-sub handler?
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.
thanks, @simax99