(__integrate-ident-impl__ state ident & named-parameters)
DO NOT USE!
This logic is held here because it was originally in fulcro.client.primitives, but we wanted to deprecate that, move it into fulcro.client.mutations, and reference the mutations implementation from primitives. However the mutations namespace already depends on the primitives namespace. So we put the logic here and reference it from both places.
DO NOT USE! This logic is held here because it was originally in fulcro.client.primitives, but we wanted to deprecate that, move it into fulcro.client.mutations, and reference the mutations implementation from primitives. However the mutations namespace already depends on the primitives namespace. So we put the logic here and reference it from both places.
(build-invoke externs needs)
Builds a function that can invoke a fq symbol by name. The returned function:
externs is an empty atom (which will be populated to cache the resolved functions)
needs is a map as specified in resolve-externs
(def externs (atom nil))
(def invoke (fulcro.util/build-invoke externs '([bidi.bidi [bidi-match]])))
...
(invoke 'bidi.bidi/bidi-match routes uri :request-method method)
The generated invoke will attempt to load the function if it isn't yet loaded, and throws an exception if the function isn't found.
The special fnsym 'noop will trigger loads without calling anything.
Builds a function that can invoke a fq symbol by name. The returned function: - Ensures the specified needs are loaded (fast once loaded) - Looks up the function (cached) - Runs the function externs is an empty atom (which will be populated to cache the resolved functions) needs is a map as specified in `resolve-externs` ``` (def externs (atom nil)) (def invoke (fulcro.util/build-invoke externs '([bidi.bidi [bidi-match]]))) ... (invoke 'bidi.bidi/bidi-match routes uri :request-method method) ``` The generated invoke will attempt to load the function if it isn't yet loaded, and throws an exception if the function isn't found. The special fnsym 'noop will trigger loads without calling anything.
(ident? x)
Returns true if x is an ident.
Returns true if x is an ident.
(load-libs externs needs)
Load libraries in Clojure dynamcically. externs is an atom that will hold the resulting resolved FQ symbols. needs
is a list of needs as specified in fulcro.util/resolve-externs
.
Load libraries in Clojure dynamcically. externs is an atom that will hold the resulting resolved FQ symbols. needs is a list of needs as specified in `fulcro.util/resolve-externs`.
(resolve-externs inmap needs)
Ensures the given needs are loaded, and resolved. Updates inmap to include all of the function symbols that were requested as namespaced symbols.
inmap - A map (nil/empty) needs - A sequence: ([namespace [f1 f2]] ...)
Returns a map keyed by namespaced symbol whose value is the resolved function:
{namespace/f1 (fn ...) namespace/h2 (fn ...) ...}
Logs a detailed error message if it fails.
Ensures the given needs are loaded, and resolved. Updates inmap to include all of the function symbols that were requested as namespaced symbols. inmap - A map (nil/empty) needs - A sequence: ([namespace [f1 f2]] ...) Returns a map keyed by namespaced symbol whose value is the resolved function: {namespace/f1 (fn ...) namespace/h2 (fn ...) ...} Logs a detailed error message if it fails.
(soft-invariant v msg)
Logs the given message if v is false.
Logs the given message if v is false.
(unique-key)
Get a unique string-based key. Never returns the same value.
Get a unique string-based key. Never returns the same value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close