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

atom?clj/s

(atom? a)
source

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

conform!clj/s

(conform! spec x)
source

deep-mergeclj/s

(deep-merge & xs)
source

force-childrenclj/s

(force-children x)
source

ident?clj/s

(ident? x)

Returns true if x is an ident.

Returns true if x is an ident.
sourceraw docstring

join-entryclj/s

(join-entry expr)
source

join-keyclj/s

(join-key expr)
source

join-valueclj/s

(join-value join)
source

join?clj/s

(join? x)
source

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`.
sourceraw docstring

mutation-join?clj/s

(mutation-join? expr)
source

mutation-keyclj/s

(mutation-key expr)
source

mutation?clj/s

(mutation? expr)
source

recursion?clj/s

(recursion? x)
source

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

soft-invariantclj/s

(soft-invariant v msg)

Logs the given message if v is false.

Logs the given message if v is false.
sourceraw docstring

TRUEclj

source

union?clj/s

(union? expr)
source

unique-ident?clj/s

(unique-ident? x)
source

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

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

× close