just found something interesting
(fn [[_ param]]
[(re-frame/subscribe [:sub1 param])
(re-frame/subscribe [:sub2 param])
(re-frame/subscribe [:sub3 param])])
(fn [[param1 param2] _]there will be no warning
but sub3 will be run in every tick
How did you check?
Ah, wait, yeah. That's expected.
You ask for a value and never use it. Not at all different from a random mapv somewhere in a non-tail position.
but its easy to make this mistake
but probably really rare case
Yeah, and it can't be detected at run time at all. If you really want to decrease the already tiny chance of making this mistake, you can write a clj-kondo checker (or find one, if it exists).