Fork me on GitHub
#re-frame
<
2022-12-07
>
fabrao00:12:54

Hello all, how do I use keys like this login/username in subscription?

fabrao00:12:52

I'm using [reframe-utils.core :as rfu] as (rfu/reg-basic-sub :login/username) . It works with this, but I have to include the namespace of reg-basic-sub to register the subscription, but the namespace is not used, that will be a problem with linters.

p-himik06:12:31

If you require a namespace as just [my.ns] without any :as or :refer, a linter should not complain then. If it does, there should be a configuration option somewhere to disable that particular warning. After all, it's exactly the same with e.g. Clojure multimethods. So such an issue is not specific to re-frame at all and is something that linters should be aware about.