Liking cljdoc? Tell your friends :D

com.fulcrologic.fulcro.algorithms.transit

Transit functions for the on-the-wire EDN communication to common remotes. Includes support for Fulcro tempids, and can be extended to support additional application-specific data types.

Transit functions for the on-the-wire EDN communication to common remotes. Includes support for Fulcro tempids,
and can be extended to support additional application-specific data types.
raw docstring

readerclj/s≠

clj
(reader in)
(reader in opts)
cljs
(reader)
(reader opts)

Create a transit reader.

  • opts: (optional) options to pass to cognitect.transit/reader (such as data type handlers).
Create a transit reader.

- `opts`: (optional) options to pass to `cognitect.transit/reader` (such as data type handlers).
source (clj)source (cljs)raw docstring

serializable?clj/s

(serializable? v)

Checks to see that the value in question can be serialized by the default fulcro writer by actually attempting to serialize it. This is not an efficient check.

Checks to see that the value in question can be serialized by the default fulcro writer by actually attempting to
serialize it.  This is *not* an efficient check.
sourceraw docstring

TempIdHandlercljs

source

transit-clj->strclj/s

(transit-clj->str data)
(transit-clj->str data opts)

Use transit to encode clj data as a string. Useful for encoding initial app state from server-side rendering.

  • data: Arbitrary data
  • opts: (optional) Options to send when creating a writer.
Use transit to encode clj data as a string. Useful for encoding initial app state from server-side rendering.

- `data`: Arbitrary data
- `opts`: (optional) Options to send when creating a `writer`.
sourceraw docstring

transit-str->cljclj/s

(transit-str->clj str)
(transit-str->clj str opts)

Use transit to decode a string into a clj data structure. Useful for decoding initial app state when starting from a server-side rendering.

Use transit to decode a string into a clj data structure. Useful for decoding initial app state when starting from a server-side rendering.
sourceraw docstring

writerclj/s≠

clj
(writer out)
(writer out opts)

Create a transit writer.

  • out: An acceptable output for transit writers.
  • opts: (optional) options to pass to cognitect.transit/writer (such as data type handlers).
Create a transit writer.

- `out`: An acceptable output for transit writers.
- `opts`: (optional) options to pass to `cognitect.transit/writer` (such as data type handlers).
cljs
(writer)
(writer opts)

Create a transit writer.

  • out: An acceptable output for transit writers.
  • opts: (optional) options to pass to cognitect.transit/writer (such as handlers).
Create a transit writer.

- `out`: An acceptable output for transit writers.
- `opts`: (optional) options to pass to `cognitect.transit/writer` (such as handlers).
source (clj)source (cljs)raw docstring

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

× close