re-frame

andre 2024-01-12T13:45:12.223829Z

just found something interesting

(fn [[_ param]]
   [(re-frame/subscribe [:sub1 param])
    (re-frame/subscribe [:sub2 param])
    (re-frame/subscribe [:sub3 param])])
 (fn [[param1 param2] _]

andre 2024-01-12T13:45:46.187339Z

there will be no warning

andre 2024-01-12T13:45:57.420549Z

but sub3 will be run in every tick

p-himik 2024-01-12T13:47:20.835129Z

How did you check?

p-himik 2024-01-12T13:47:31.890589Z

Ah, wait, yeah. That's expected.

p-himik 2024-01-12T13:48:09.195329Z

You ask for a value and never use it. Not at all different from a random mapv somewhere in a non-tail position.

andre 2024-01-12T13:50:50.140989Z

but its easy to make this mistake

andre 2024-01-12T13:51:22.687439Z

but probably really rare case

p-himik 2024-01-12T14:22:23.983239Z

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).