Liking cljdoc? Tell your friends :D

views.reagent.client.core


->view-sig-cursorcljs

(->view-sig-cursor view-sig)

Creates and returns a Reagent cursor that can be used to access the data for the view corresponding with the view-sig.

Generally, for code in a component's render function, you should use views.reagent.client.component/view-cursor instead of using this function directly. Use of this function instead requires you to manage view subscription/unsubscription yourself.

NOTE: The data returned by this function is intended to be used in a read-only manner. Using this cursor to change the data will not propagate the changes to the server.

Creates and returns a Reagent cursor that can be used to access the data
for the view corresponding with the view-sig.

Generally, for code in a component's render function, you should use
views.reagent.client.component/view-cursor instead of using this
function directly. Use of this function instead requires you to manage
view subscription/unsubscription yourself.

NOTE: The data returned by this function is intended to be used in a
      read-only manner. Using this cursor to change the data will *not*
      propagate the changes to the server.
raw docstring

on-open!cljs

(on-open!)

on-receive!cljs

(on-receive! data)

send-data!cljs

(send-data! data)

send-fncljs


subscribe!cljs

(subscribe! view-sigs)

Subscribes to the specified view(s). Updates to the data on the server will be automatically pushed out. Use a 'view cursor' to read this data and render it in any component(s).

Subscribes to the specified view(s). Updates to the data on the server will
be automatically pushed out. Use a 'view cursor' to read this data and
render it in any component(s).
raw docstring

subscribed?cljs

(subscribed? view-sig)

Returns true if we are currently subscribed to the specified view.

Returns true if we are currently subscribed to the specified view.
raw docstring

unsubscribe!cljs

(unsubscribe! view-sigs)

Unsubscribes from all of the specified view(s). No further updates from the server will be received for these views and the latest data received from the server is cleared.

Unsubscribes from all of the specified view(s). No further updates from the
server will be received for these views and the latest data received from
the server is cleared.
raw docstring

update-subscriptions!cljs

(update-subscriptions! new-view-sigs old-view-sigs)

Unsubscribes from old-view-sigs and then subscribes to new-view-sigs. This function should be used when one or more arguments to views that are currently subscribed to have changed.

Unsubscribes from old-view-sigs and then subscribes to new-view-sigs. This
function should be used when one or more arguments to views that are currently
subscribed to have changed.
raw docstring

view-datacljs

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

× close