In re-frame + reagent, code like:
(when-let [sub @(rf/subscribe [...])] ...)
is very common.
The rules of hooks prohibit such patterns (conditional use of. hooks). It should be possible to add clj-kondo linting rules/hooks to capture the anti-patterns of hooks with rfx/use-sub and friends.
In re-frame + reagent, code like:
is very common.
The rules of hooks prohibit such patterns (conditional use of. hooks). It should be possible to add clj-kondo linting rules/hooks to capture the anti-patterns of hooks with
rfx/use-suband friends.