(->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.
(on-open!)
(on-receive! data)
(send-data! data)
(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).
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close