Liking cljdoc? Tell your friends :D

reagent.session


assoc-in!cljs

(assoc-in! ks v)

Associates a value in the session, where ks is a sequence of keys and v is the new value and returns a new nested structure. If any levels do not exist, hash-maps will be created.

Associates a value in the session, where ks is a
sequence of keys and v is the new value and returns
a new nested structure. If any levels do not exist,
hash-maps will be created.
sourceraw docstring

clear!cljs

(clear!)

Remove all data from the session and start over cleanly.

Remove all data from the session and start over cleanly.
sourceraw docstring

cursorcljs

(cursor ks)

Returns a cursor from the state atom.

Returns a cursor from the state atom.
sourceraw docstring

getcljs

(get k & [default])

Get the key's value from the session, returns nil if it doesn't exist.

Get the key's value from the session, returns nil if it doesn't exist.
sourceraw docstring

get!cljs

(get! k & [default])

Destructive get from the session. This returns the current value of the key and then removes it from the session.

Destructive get from the session. This returns the current value of the key
and then removes it from the session.
sourceraw docstring

get-incljs

(get-in ks & [default])

Gets the value at the path specified by the vector ks from the session, returns nil if it doesn't exist.

Gets the value at the path specified by the vector ks from the session,
returns nil if it doesn't exist.
sourceraw docstring

get-in!cljs

(get-in! ks & [default])

Destructive get from the session. This returns the current value of the path specified by the vector ks and then removes it from the session.

Destructive get from the session. This returns the current value of the path
specified by the vector ks and then removes it from the session.
sourceraw docstring

put!cljs

(put! k v)
source

remove!cljs

(remove! k)

Remove a key from the session

Remove a key from the session
sourceraw docstring

reset!cljs

(reset! m)
source

statecljs

source

swap!cljs

(swap! f & args)

Replace the current session's value with the result of executing f with the current value and args.

Replace the current session's value with the result of executing f with
the current value and args.
sourceraw docstring

update!cljs

(update! k f & args)

Updates a value in session where k is a key and f is the function that takes the old value along with any supplied args and return the new value. If key is not present it will be added.

Updates a value in session where k is a key and f
is the function that takes the old value along with any
supplied args and return the new value. If key is not
present it will be added.
sourceraw docstring

update-in!cljs

(update-in! ks f & args)

Updates a value in the session, where ks is a sequence of keys and f is a function that will take the old value along with any supplied args and return the new value. If any levels do not exist, hash-maps will be created.

Updates a value in the session, where ks is a
sequence of keys and f is a function that will
take the old value along with any supplied args and return
the new value. If any levels do not exist, hash-maps
will be created.
sourceraw docstring

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

× close