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

data-eventcljs

(data-event t)
(data-event t d)

Creates an event instance that only contains data.

Creates an event instance that only contains data.
sourceraw docstring

effect?cljs

(effect? e)

Return true when e satisfies the EffectEvent protocol.

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

EffectEventcljsprotocol

effectcljs

(effect event state stream)
source

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.
sourceraw docstring

Eventcljsprotocol

-typecljs

(-type _)

Returns the type of the event.

Returns the type of the event.
source

eventcljs

(event type)
(event type params)

Create an event reference instance.

Create an event reference instance.
sourceraw docstring

event-ref?cljs

(event-ref? v)
source

event?cljs

(event? v)

Return true if v is an event.

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

EventRefcljs

source

handle-errorcljsmultimethod

source

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.
sourceraw 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.
sourceraw docstring

reifyclj/smacro

(reify type & impls)

A reify variant for define typed events.

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

repr-eventcljs

(repr-event event)
source

resolvecljsmultimethod

source

Storecljsprotocol

source

storecljs

(store)
(store {:keys [on-error state resolve validate-fn]
        :or {on-error handle-error validate-fn map?}
        :as params})

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.
sourceraw docstring

typecljs

(type o)
source

type?cljs

(type? t)
(type? t v)
source

update?cljs

(update? e)

Return true when e satisfies the UpdateEvent protocol.

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

UpdateEventcljsprotocol

updatecljs

(update event state)

Apply a transformation to the state.

Apply a transformation to the state.
source

watch?cljs

(watch? e)

Return true when e satisfies the WatchEvent protocol.

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

WatchEventcljsprotocol

watchcljs

(watch event state stream)
source

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

× close