Liking cljdoc? Tell your friends :D
ClojureScript only.

bluegenes.interceptors

Custom interceptors for BlueGenes. To learn more about interceptors visit https://github.com/Day8/re-frame/blob/master/docs/Interceptors.md

Custom interceptors for BlueGenes. To learn more about interceptors visit
https://github.com/Day8/re-frame/blob/master/docs/Interceptors.md
raw docstring

abort-speccljs

(abort-spec spec)

Provides a re-frame interceptor that accepts a Clojure spec. When the event fires it uses the provided spec to validate the first value proceeding the event name in the event vector. If the spec does not validate the data then the event is rolled back. Note: I wrote this as an experiment to combine spec / interceptors but it's actually useful because it enqueues events rather than letting them fail. A good use case would be: dispatching an event that runs a query. If the query doesn't match the query spec then the event is rolled back, and when used in combination with an Undo effect you won't need to manage an extra 'bad' dispatch.

Provides a re-frame interceptor that accepts a Clojure spec. When the event fires it uses the provided spec
to validate the first value proceeding the event name in the event vector. If the spec does not validate
the data then the event is rolled back.
Note: I wrote this as an experiment to combine spec / interceptors but it's actually useful because it enqueues
events rather than letting them fail. A good use case would be: dispatching an event that runs a query. If the query
doesn't match the query spec then the event is rolled back, and when used in combination with an Undo effect you won't
need to manage an extra 'bad' dispatch.
sourceraw docstring

clear-tooltipscljs

(clear-tooltips)

This interceptor is an example of something you do when you want to beat Bootstrap with a hammer. It will look for any popovers in the DOM and force them to close. Sticky popovers are a common problem for us because Bootstrap doesn't know when a React component that triggered a popover unmounts.

This interceptor is an example of something you do when you want to beat Bootstrap with a hammer.
It will look for any popovers in the DOM and force them to close. Sticky popovers
are a common problem for us because Bootstrap doesn't know when a React component that triggered
a popover unmounts.
sourceraw docstring

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

× close