Automatically register subscriptions to fulfill EQL queries for fulcro components.
Automatically register subscriptions to fulfill EQL queries for fulcro components.
(create-component-subs sub-name-kw <sub sub-fn datasource c join-subs-map)
Creates a subscription function (and dependent subscription functions) that will fulfill the given fulcro component's query. The subscription name will by the fully qualified keyword or symbol returned from class->registry-key of the component. The component must have a name and so must any components in its query.
Creates a subscription function (and dependent subscription functions) that will fulfill the given fulcro component's query. The subscription name will by the fully qualified keyword or symbol returned from class->registry-key of the component. The component must have a name and so must any components in its query.
(eql-query-keys-by-type query join-ast->subscription join-ast->union-sub)
Takes an EQL query parses it and returns a map of the members of the query for easier downstream consumption.
Takes an EQL query parses it and returns a map of the members of the query for easier downstream consumption.
(get-all-props-shallow datasource app id-attr props prop->ast args)
Return hashmap of data attribute keywords -> subscription output implementation for '* queries
Return hashmap of data attribute keywords -> subscription output implementation for '* queries
(nc args)
Wraps fulcro.raw.components/nc to take one hashmap of fulcro component options, supports :ident being a keyword. Args: :query - fulcro eql query :ident - kw or function :name -> same as :componentName Returns a fulcro component created by fulcro.raw.components/nc
Wraps fulcro.raw.components/nc to take one hashmap of fulcro component options, supports :ident being a keyword. Args: :query - fulcro eql query :ident - kw or function :name -> same as :componentName Returns a fulcro component created by fulcro.raw.components/nc
(nc-wrapper args)
Wraps fulcro.raw.components/nc to take one hashmap of fulcro component options, supports :ident being a keyword. Args: :query - fulcro eql query :ident - kw or function :name -> same as :componentName Returns a fulcro component created by fulcro.raw.components/nc
Wraps fulcro.raw.components/nc to take one hashmap of fulcro component options, supports :ident being a keyword. Args: :query - fulcro eql query :ident - kw or function :name -> same as :componentName Returns a fulcro component created by fulcro.raw.components/nc
(register-component-subs! reg-sub-raw <sub datasource c)
Registers subscriptions that will fulfill the given fulcro component's query. The subscription name will by the fully qualified keyword or symbol returned from class->registry-key of the component. The component must have a name and so must any components in its query.
Registers subscriptions that will fulfill the given fulcro component's query. The subscription name will by the fully qualified keyword or symbol returned from class->registry-key of the component. The component must have a name and so must any components in its query.
(sub-entity <sub
sub-fn
datasource
id-attr
plain-props
join-props
full-props
attr-kw->sub-fn)
Registers a subscription that returns a domain entity as a hashmap. id-attr for the entity, the entity subscription name (fq kw) a seq of dependent subscription props
Registers a subscription that returns a domain entity as a hashmap. id-attr for the entity, the entity subscription name (fq kw) a seq of dependent subscription props
(sub-plain-join <sub
datasource
id-attr
join-prop
join-component-sub
join-id-attr)
(union-query->branch-map* join-prop union-join-q)
Takes a union join query and returns a map of keyword of the branches of the join to the query for that branch.
Takes a union join query and returns a map of keyword of the branches of the join to the query for that branch.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close