duct

2021-08-03T07:35:39.002700Z

@richiardiandrea yes that should work. const is essentially just the identity function, so something like this:

(defmethod ig/init-key :duct/const [_ v] v)
it works by just returning the config value as the component

richiardiandrea 2021-08-03T14:58:31.004200Z

Thanks yes, the trick there is that you need a namespaced key ...mine was not working because :foo does not have a namespace 😉

2021-08-03T07:36:53.003900Z

Oh what you have probably won’t quite work… iirc you need to use two namespaced keys:

[:duct/const :myns/foo] true
myns can be anything you want.

👍 2