|
|
@@ -92,6 +92,7 @@
|
|
|
[repo {:keys [query inputs rules] :as query'} query-opts]
|
|
|
(let [pprint (if config/dev? #(when (state/developer-mode?) (apply prn %&)) (fn [_] nil))
|
|
|
start-time (.now js/performance)]
|
|
|
+ (when config/dev? (js/console.groupCollapsed "react-query logs:"))
|
|
|
(pprint "================")
|
|
|
(pprint "Use the following to debug your datalog queries:")
|
|
|
(pprint query')
|
|
|
@@ -107,4 +108,5 @@
|
|
|
(pprint "inputs (post-resolution):" resolved-inputs)
|
|
|
(pprint "query-opts:" query-opts)
|
|
|
(pprint (str "time elapsed: " (.toFixed (- (.now js/performance) start-time) 2) "ms"))
|
|
|
+ (when config/dev? (js/console.groupEnd))
|
|
|
(apply react/q repo k query-opts query inputs))))
|