Skip to content

Small library to couple the re-frame database to the redux devtools. Works in 2 directions, e.g. with time travelling.

License

Notifications You must be signed in to change notification settings

Popl7/re-frame-redux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

re-frame-redux

A ClojureScript libraryto couple the re-frame database to the redux devtools. Works in 2 directions, e.g. with time travelling.

Clojars Project

Demo

Youtube Demo

Bamse example project using it

Usage

This library can be hooked into a re-frame application.

In core.cljs

Require the library: [re-frame-redux.core :as redux] (redux/setup)

In events.cljs

Require the library: [re-frame-redux.core :as redux] Where you register your events add: (redux/register-redux-events). And register your event handlers with redux/reg-event-db and redux/reg-event-fx.

Checking with spec

Optional you can register the redux-event interceptor with a cljs.spec to validate the database on changes: (redux/register-redux-events :my-spec/my-db-spec).

License

MIT License

Copyright (c) 2019 Steven Thonus

About

Small library to couple the re-frame database to the redux devtools. Works in 2 directions, e.g. with time travelling.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published