Liking cljdoc? Tell your friends :D

potok.core

Stream & Events based state management toolkit for ClojureScript.

Stream & Events based state management toolkit for ClojureScript.
raw docstring

effect?cljs

(effect? e)

Return true when e satisfies the EffectEvent protocol.

Return `true` when `e` satisfies
the EffectEvent protocol.
raw docstring

EffectEventcljsprotocol

effectcljs

(effect event state stream)

emit!cljs

(emit! store event)
(emit! store event & more)

Emits an event or a collection of them into the default store.

If you have instanciated your own store, this function provides 2-arity that allows specify a user defined store.

Emits an event or a collection of them into the default store.

If you have instanciated your own store, this function provides
2-arity that allows specify a user defined store.
raw docstring

Eventcljsprotocol

-typecljs

(-type _)

Returns the type of the event.

Returns the type of the event.

event?cljs

(event? v)

Return true if v is an event.

Return `true` if `v` is an event.
raw docstring

input-streamcljs

(input-stream store)

Returns the internal input stream of the store. Should be used by third party integration that want use store as event bus not only with defined events.

Returns the internal input stream of the store. Should
be used by third party integration that want use store
as event bus not only with defined events.
raw docstring

promise?cljs

(promise? v)

Return true if v is a promise instance or is a thenable object.

Return `true` if `v` is a promise instance or is a thenable
object.
raw docstring

reifyclj/smacro

(reify type & impls)

A reify variant for define typed events.

A `reify` variant for define typed events.
raw docstring

Storecljsprotocol


storecljs

(store)
(store {:keys [on-error state] :or {on-error default-error-handler}})

Start a new store.

This function initializes a new event processing stream loop and returns a bi-directional rx stream that should be used to push new events and subscribe to state changes.

Start a new store.

This function initializes a new event processing stream
loop and returns a bi-directional rx stream that should
be used to push new events and subscribe to state changes.
raw docstring

typecljs

(type o)

update?cljs

(update? e)

Return true when e satisfies the UpdateEvent protocol.

Return `true` when `e` satisfies
the UpdateEvent protocol.
raw docstring

UpdateEventcljsprotocol

updatecljs

(update event state)

Apply a transformation to the state.

Apply a transformation to the state.

watch?cljs

(watch? e)

Return true when e satisfies the WatchEvent protocol.

Return `true` when `e` satisfies
the WatchEvent protocol.
raw docstring

WatchEventcljsprotocol

watchcljs

(watch event state stream)

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

× close