fulcro

janezj 2025-06-02T12:09:37.504019Z

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}*))

🙏 1
tony.kay 2025-06-03T18:54:15.521359Z

Yeah, that should be part of the docstrings

tony.kay 2025-06-03T18:54:37.185299Z

Query engine has to be able to look up components in the registry, and anonymous components won’t be there