Liking cljdoc? Tell your friends :D

mranderson047.re-frame.v0v10v2.re-frame.router


dispatchclj/s

(dispatch event)

Enqueue event for processing by event handling machinery.

event is a vector of length >= 1. The 1st element identifies the kind of event.

Note: the event handler is not run immediately - it is not run synchronously. It will likely be run 'very soon', although it may be added to the end of a FIFO queue which already contain events.

Usage: (dispatch [:order-pizza {:supreme 2 :meatlovers 1 :veg 1})

Enqueue `event` for processing by event handling machinery.

`event` is a vector of length >= 1. The 1st element identifies the kind of event.

Note: the event handler is not run immediately - it is not run
synchronously. It will likely be run 'very soon', although it may be
added to the end of a FIFO queue which already contain events.

Usage:
   (dispatch [:order-pizza {:supreme 2 :meatlovers 1 :veg 1})
sourceraw docstring

dispatch-syncclj/s

(dispatch-sync event-v)

Synchronously (immediately) process event. Do not queue.

Generally, don't use this. Instead use dispatch. It is an error to use dispatch-sync within an event handler.

Useful when any delay in processing is a problem:

  1. the :on-change handler of a text field where we are expecting fast typing. 2 when initialising your app - see 'main' in todomvc examples
  2. in a unit test where we don't want the action 'later'

Usage: (dispatch-sync [:sing :falsetto 634])

Synchronously (immediately) process `event`. Do not queue.

Generally, don't use this. Instead use `dispatch`. It is an error
to use `dispatch-sync` within an event handler.

Useful when any delay in processing is a problem:
   1. the `:on-change` handler of a text field where we are expecting fast typing.
   2  when initialising your app - see 'main' in todomvc examples
   3. in a unit test where we don't want the action 'later'

Usage:
   (dispatch-sync [:sing :falsetto 634])
sourceraw docstring

event-queueclj/s

source

EventQueuecljs

source

IEventQueueclj/sprotocol

-run-queueclj/s

(-run-queue this)

remove-post-event-callbackclj/s

(remove-post-event-callback this f)

-add-eventclj/s

(-add-event this event)

-resumeclj/s

(-resume this)

pushclj/s

(push this event)

-run-next-tickclj/s

(-run-next-tick this)

-fsm-triggerclj/s

(-fsm-trigger this trigger arg)

-pauseclj/s

(-pause this later-fn)

add-post-event-callbackclj/s

(add-post-event-callback this id callack)

-process-1st-event-in-queueclj/s

(-process-1st-event-in-queue this)

-call-post-event-callbacksclj/s

(-call-post-event-callbacks this event)

-exceptionclj/s

(-exception this ex)
source

later-fnsclj/s

source

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

× close