Replies: 4 comments
-
Alternatives (not necessarily better than what's already mentioned):
(defmacro f [& args] `[~@args])
(r/f component 1 2 3) This solution doesn't need any changes to other code in Reagent, but allows static analysis to detect reagent calls accurately.
|
Beta Was this translation helpful? Give feedback.
-
Form-2 components are marked by clj-kondo as unused binding
|
Beta Was this translation helpful? Give feedback.
-
@Kaspazza The way to solve this is to write:
|
Beta Was this translation helpful? Give feedback.
-
@borkdude Hmmm, I was in a mindset it is used so there should be no warning... But it makes sense... Thanks! |
Beta Was this translation helpful? Give feedback.
-
clj-kondo/clj-kondo#25
:n>
:$
. Would work the same way as[comp]
, but the keyword would make it possible to find the calls.Beta Was this translation helpful? Give feedback.
All reactions