(enable-subscription-debugging cb)
Enables subscription debugging on the provided cb
function. Logs the first attempt to deref
the subscription as well as subsequent derefs that result in a different subscription value. If
a deref does not result in a different value, it isn't logged.
Prefer the with-subscription-debug
macro over this function. You can use it as a wrapping macro
(like with-redefs
), which is nicer to work with.
Enables subscription debugging on the provided `cb` function. Logs the first attempt to deref the subscription as well as subsequent derefs that result in a different subscription value. If a deref does not result in a different value, it isn't logged. Prefer the `with-subscription-debug` macro over this function. You can use it as a wrapping macro (like `with-redefs`), which is nicer to work with.
(with-subscription-debug & body)
Enables subscription debugging on body
. See enable-subscription-debugging
for
more details about how the debugging works.
Example:
(it "should render correctly"
(h/with-subscription-debug
(h/render [my-stateful-component])
...))
Enables subscription debugging on `body`. See `enable-subscription-debugging` for more details about how the debugging works. Example: ```clj (it "should render correctly" (h/with-subscription-debug (h/render [my-stateful-component]) ...)) ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close