Functions used by Fulcro to talk to Fulcro Inspect.
Functions used by Fulcro to talk to Fulcro Inspect.
(app-started! app)
Register the application with Inspect, if it is available.
Register the application with Inspect, if it is available.
(cljs? env)
Returns true when env is a cljs macro &env
Returns true when env is a cljs macro &env
(db-changed! app old-state new-state)
Notify Inspect that the database changed
Notify Inspect that the database changed
(ido & body)
Wrap a block of code that will only run if Inspect is enabled. Code in these blocks will also be removed via DCE in Closure.
This macro emits nothing when run in clj, and will output code that should be completely removed by the Closure compiler if both goog.DEBUG and com.fulcrologic.fulcro.inspect.inspect-client/INSPECT are false.
This allows you to enable inspect messages in production by adding the following to your compiler config:
:closure-defines {"com.fulcrologic.fulcro.inspect.inspect_client.INSPECT" true}
Wrap a block of code that will only run if Inspect is enabled. Code in these blocks will also be removed via DCE in Closure. This macro emits nothing when run in clj, and will output code that should be completely removed by the Closure compiler if both goog.DEBUG and com.fulcrologic.fulcro.inspect.inspect-client/INSPECT are false. This allows you to enable inspect messages in production by adding the following to your compiler config: :closure-defines {"com.fulcrologic.fulcro.inspect.inspect_client.INSPECT" true}
(ilet bindings & body)
Like clojure.core/let
, but elides the block if Inspect isn't enabled.
This macro emits nothing when run in clj, and will output code that should be completely removed by the Closure compiler if both goog.DEBUG and com.fulcrologic.fulcro.inspect.inspect-client/INSPECT are false.
This allows you to enable inspect messages in production by adding the following to your compiler config:
:closure-defines {"com.fulcrologic.fulcro.inspect.inspect_client.INSPECT" true}
Like `clojure.core/let`, but elides the block if Inspect isn't enabled. This macro emits nothing when run in clj, and will output code that should be completely removed by the Closure compiler if both goog.DEBUG and com.fulcrologic.fulcro.inspect.inspect-client/INSPECT are false. This allows you to enable inspect messages in production by adding the following to your compiler config: :closure-defines {"com.fulcrologic.fulcro.inspect.inspect_client.INSPECT" true}
(optimistic-action-finished!
app
{:keys [component ref state
com.fulcrologic.fulcro.algorithms.tx-processing/options]}
{:keys [tx-id tx state-before]})
Notify inspect that a transaction finished.
app - The app env - The mutation env that completed.
Notify inspect that a transaction finished. app - The app env - The mutation env that completed.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close