Liking cljdoc? Tell your friends :D

com.fulcrologic.fulcro.algorithms.indexing

Functions that implement the query and component indexing. Fulcro keeps indexes of on-screen components by ident and class. These enable Fulcro to find on-screen components for things like targeted refresh. You are allowed to use the indexes to find components for whatever purpose suits your needs (e.g. looking at component options).

Functions that implement the query and component indexing. Fulcro keeps indexes of on-screen
components by ident and class. These enable Fulcro to find on-screen components for things
like targeted refresh. You are allowed to use the indexes to find components for whatever
purpose suits your needs (e.g. looking at component options).
raw docstring

drop-component!clj/s

(drop-component! this)
(drop-component! this ident)

Remove the component instance from the indexes. If ident is supplied it uses that, otherwise it gets the ident from the component itself.

Remove the component instance from the indexes. If ident is supplied it uses that, otherwise it gets the
ident from the component itself.
sourceraw docstring

index-component!clj/s

(index-component! this)

Add a component instance to the app index. This adds the component to the class->components and ident->components indexes.

Add a component instance to the app index. This adds the component to the `class->components` and
`ident->components` indexes.
sourceraw docstring

index-queryclj/s

(index-query query)

Create an index of the given component-annotated query. Returns a map from query keyword to the component class(es) that query for that keyword.

Create an index of the given component-annotated query. Returns a map from query keyword to the component
class(es) that query for that keyword.
sourceraw docstring

index-root!clj/s

(index-root! app)

Index the root query (see index-query) and side-effect the result (prop->classes) into the given app. This function assumes the root-class has already been supplied to the app (i.e. is has been mounted).

Index the root query (see index-query) and side-effect the result (`prop->classes`) into the given app.
This function assumes the `root-class` has already been supplied to the app (i.e. is has been mounted).
sourceraw docstring

(link-query-props {:keys [key children] :as ast})

Returns a set of all of the keys that appear in link refs [:k '_] in the entire ast.

Returns a set of all of the keys that appear in link refs `[:k '_]` in the entire ast.
sourceraw docstring

reindexclj/s

Mutation: re-index the application (typically after a dynamic query change).

Mutation: re-index the application (typically after a dynamic query change).
sourceraw docstring

top-level-keysclj/s

(top-level-keys ast)

Return a set of keywords that are in the top-level of the given AST

Return a set of keywords that are in the top-level of the given AST
sourceraw docstring

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

× close