Liking cljdoc? Tell your friends :D

fulcro.client.impl.data-targeting


append-target?clj/s

(append-target? t)

append-toclj/s

(append-to target)

integrate-identclj/s

(integrate-ident state ident & named-parameters)

Integrate an ident into any number of places in the app state. This function is safe to use within mutation implementations as a general helper function.

The named parameters can be specified any number of times. They are:

  • append: A vector (path) to a list in your app state where this new object's ident should be appended. Will not append the ident if that ident is already in the list.
  • prepend: A vector (path) to a list in your app state where this new object's ident should be prepended. Will not append the ident if that ident is already in the list.
  • replace: A vector (path) to a specific location in app-state where this object's ident should be placed. Can target a to-one or to-many. If the target is a vector element then that element must already exist in the vector.
Integrate an ident into any number of places in the app state. This function is safe to use within mutation
implementations as a general helper function.

The named parameters can be specified any number of times. They are:

- append:  A vector (path) to a list in your app state where this new object's ident should be appended. Will not append
the ident if that ident is already in the list.
- prepend: A vector (path) to a list in your app state where this new object's ident should be prepended. Will not append
the ident if that ident is already in the list.
- replace: A vector (path) to a specific location in app-state where this object's ident should be placed. Can target a to-one or to-many.
 If the target is a vector element then that element must already exist in the vector.
raw docstring

multiple-targetsclj/s

(multiple-targets & targets)

multiple-targets?clj/s

(multiple-targets? t)

prepend-target?clj/s

(prepend-target? t)

prepend-toclj/s

(prepend-to target)

process-targetclj/s

(process-target state source-path target)
(process-target state source-path target remove-ok?)

replace-atclj/s

(replace-at target)

replacement-target?clj/s

(replacement-target? t)

special-target?clj/s

(special-target? target)

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

× close