Automatically register subscriptions to fulfill EQL queries for fulcro components.
Automatically register subscriptions to fulfill EQL queries for fulcro components.
(create-component-subs <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 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 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)
Takes two keywords: id attribute and property attribute, registers a layer 2 subscription using the id to lookup the entity and extract the property.
Takes two keywords: id attribute and property attribute, registers a layer 2 subscription using the id to lookup the entity and extract the property.
(sub-union-join <sub datasource id-attr join-prop join-component-sub)
Takes two keywords: id attribute and property attribute, registers a layer 2 subscription using the id to lookup the entity and extract the property.
Takes two keywords: id attribute and property attribute, registers a layer 2 subscription using the id to lookup the entity and extract the property.
(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