Hey all. I have a component that I only want to start in certain environments. Is there a way I can accomplish this?
(when (System/env "SOME_THING) (map->MyComponent {}))
HMm I did something similar but maybe it was in the wrong place
Oh I did exactly that. Component is throwing an exception regarding nils inside of the system map
you may need to use if instead of when and have :nothing as the missing case
component extends the lifecycle protocol to Object but not to nil
(when (= "true" (System/getenv "CREATE_QUEUES"))
(map->Queue {:queue-name1 queue-name :queue-name2 queue-name}))
Thats what I was thinking I had to do 😞