re-flow.db

Functions for interacting with re-frame dbs.

error-handler

(error-handler db)

Gets the error handler in db.

If no error handler is found, an event that performs a noop is returned.

flow

(flow db)(flow db name)

Gets a flow from the db.

Returns nil if no corresponding flow is found.

path

(path)(path name)

Gets the path within a db to the flow specified by name.

Uses the default flow if no flow-name is provided.

set-error-handler

(set-error-handler db handler)

Stores the handler in db.

Handler can be a keyword or a vector. If handler is a keyword, it is stored in db as a vector containing only the keyword.

set-flow

(set-flow db flow)(set-flow db name flow)

Sets a flow in db.

set-transition-interceptors

(set-transition-interceptors db transition-interceptors)

Sets the transition interceptors in db.

transition-interceptors

(transition-interceptors db)

Gets the transition interceptors stored in db.