I just want to save some time to others. When creating components with nc, :componentName is required when referenced from defsc query.
(def ^:private gis-field-keys [:gis/id :gis/name])
(def GisWithAutoAlarm (rc/nc (conj gis-field-keys :gis/auto-alarm?)))
When I reference {:gis (comp/get-query data/GisWithAutoAlarm)}
Uncaught #error {:message "Invalid join, {:gis "anonymous"}", :data {:type :error/invalid-join}}
Correct version is: and componentName must be namespaced keyword
(def GisWithAutoAlarm (rc/nc (conj gis-field-keys :gis/auto-alarm?) *{:componentName ::GisWithAutoAlarm}*))Yeah, that should be part of the docstrings
Query engine has to be able to look up components in the registry, and anonymous components won’t be there