Closed jc776 closed 4 years ago
I get further warnings about calls to private vars when using the macros:
[Figwheel:WARNING] Compile Warning client.cljs line:8 column:1
var: helix.core/extract-cljs-props is not public
3 [helix.core :refer [defnc $]]
4 [helix.hooks :as hooks]
5 [helix.dom :as d]
6 ["react-dom" :as rdom]))
7
8 (defnc Greeting [{:keys [name]}]
^---
(defnc App []
(let [[name set-name] (hooks/use-state "Helix User")]
(hooks/use-effect :auto-deps
(js/console.log "effect" name)
(set! js/document.title name))
(d/div
(d/h1 "Welcome!"
;; create elements out of components
($ Greeting {:name name})
(d/input {:value name
:on-change #(set-name (.. % -target -value))})))))
var: helix.hooks/raw-use-effect is not public
var: helix.hooks/wrap-fx is not public
I've updated the fix-fighweel
branch that should correct those warnings.
I've also created an example repo here: https://github.com/Lokeh/fighweel-helix
I'm getting the following compile warnings when using Figwheel - these hook macros are defined outside a reader conditional, but depend on things only defined under
:clj
:deps-macro-body
is only defined for:clj
:hana
is only imported under:clj
:I'm using fix-figwheel
:sha "43ed17b2828ae7f5b406f99d5dbb753321bf73d6"
.