Liking cljdoc? Tell your friends :D

fulcro.util


__integrate-ident-impl__clj/s

(__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.
raw docstring

atom?clj/s

(atom? a)

build-invokeclj

(build-invoke externs needs)

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.

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.
raw docstring

conform!clj/s

(conform! spec x)

deep-mergeclj/s

(deep-merge & xs)

force-childrenclj/s

(force-children x)

ident?clj/s

(ident? x)

Returns true if x is an ident.

Returns true if x is an ident.
raw docstring

join-entryclj/s

(join-entry expr)

join-keyclj/s

(join-key expr)

join-valueclj/s

(join-value join)

join?clj/s

(join? x)

load-libsclj

(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`.
raw docstring

mutation-join?clj/s

(mutation-join? expr)

mutation-keyclj/s

(mutation-key expr)

mutation?clj/s

(mutation? expr)

recursion?clj/s

(recursion? x)

resolve-externsclj

(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.
raw docstring

soft-invariantclj/s

(soft-invariant v msg)

Logs the given message if v is false.

Logs the given message if v is false.
raw docstring

TRUEclj


union?clj/s

(union? expr)

unique-ident?clj/s

(unique-ident? x)

unique-keyclj/s

(unique-key)

Get a unique string-based key. Never returns the same value.

Get a unique string-based key. Never returns the same value.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close