(->db ?fulcro-app)
Subscriptions support passing: a fulcro app, the fulcro state atom, or the state hashmap itself. This function returns the state hashmap for any of these inputs.
Subscriptions support passing: a fulcro app, the fulcro state atom, or the state hashmap itself. This function returns the state hashmap for any of these inputs.
(create-component-subs component sub-joins-map)
Creates a subscription function that will fulfill the given Fulcro component's query.
The component and any components in its query must have a name (cannot be anonymous).
the sub-joins-map
argument is a hashmap whose keys are the join properties of the component and whose value is a
subscription function for normal joins, and a nested hashmap for unions of the union key to subscription.
You do not need to provide a subscription function for recursive joins.
You do not need to provide a subscription for Fulcro's form-state config join if you component includes that join in its query,
a subscription will be created for you for form-state/config.
Creates a subscription function that will fulfill the given Fulcro component's query. The component and any components in its query must have a name (cannot be anonymous). the `sub-joins-map` argument is a hashmap whose keys are the join properties of the component and whose value is a subscription function for normal joins, and a nested hashmap for unions of the union key to subscription. You do not need to provide a subscription function for recursive joins. You do not need to provide a subscription for Fulcro's form-state config join if you component includes that join in its query, a subscription will be created for you for form-state/config.
(expand-ident-list-sub layer2-sub component-eql-sub)
Takes a layer2 subscription function and an eql subscription for a component.
Returns a function subscription that invokes the eql subscription for each ident in the list of idents returned from the provided layer2-sub
.
Takes a layer2 subscription function and an eql subscription for a component. Returns a function subscription that invokes the eql subscription for each ident in the list of idents returned from the provided `layer2-sub`.
(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 - keyword or function :name -> same as :componentName (fully qualified keyword or symbol) Returns a fulcro component (or a mock version if fulcro is not installed) 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 - keyword or function :name -> same as :componentName (fully qualified keyword or symbol) Returns a fulcro component (or a mock version if fulcro is not installed) created by fulcro.raw.components/nc
(register-component-subs! c)
Registers subscriptions that will fulfill the given fulcro component's query. The component and any components in its query must have a name (cannot be anonymous).
Registers subscriptions that will fulfill the given fulcro component's query. The component and any components in its query must have a name (cannot be anonymous).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close