You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Find a way to make Hiccup forms easier to analyze #522
Optional way to create normal Reagent components from functions using some keyword, like :n>:$. Would work the same way as [comp], but the keyword would make it possible to find the calls.
Namespaced keyword would be even better, but would be quite verbose.
Provide function based API to optionally replace Hiccup syntax (like om.dom, helix.dom).
Form-2 components are marked by clj-kondo as unused binding
(defn outer
[a b c] ;; <--- those parameters will get marked by clj-kondo as unused-binding
;; ....
(fn [a b c] ;; <--- they are repeated here
[:div
(str a b c)]))
Activity
borkdude commentedon Dec 23, 2020
Alternatives (not necessarily better than what's already mentioned):
This solution doesn't need any changes to other code in Reagent, but allows static analysis to detect reagent calls accurately.
[foo 1 2 3]as a function call in .cljs files. False positives should be handled by users.Kaspazza commentedon Nov 5, 2024
Form-2 components are marked by clj-kondo as unused binding
borkdude commentedon Nov 5, 2024
@Kaspazza The way to solve this is to write:
Kaspazza commentedon Nov 5, 2024
@borkdude Hmmm, I was in a mindset it is used so there should be no warning... But it makes sense... Thanks!