Merge pull request #153 from cldwalker/fix-docstrings
Fix docstring references to old fns
This commit is contained in:
commit
4bc4415f49
|
@ -21,14 +21,14 @@
|
|||
|
||||
|
||||
(register-handler ;; setup initial state
|
||||
:initialize ;; usage: (submit [:initialize])
|
||||
:initialize ;; usage: (dispatch [:initialize])
|
||||
(fn
|
||||
[db _]
|
||||
(merge db initial-state))) ;; what it returns becomes the new state
|
||||
|
||||
|
||||
(register-handler
|
||||
:time-color ;; usage: (submit [:time-color 34562])
|
||||
:time-color ;; usage: (dispatch [:time-color 34562])
|
||||
(path [:time-color]) ;; this is middleware
|
||||
(fn
|
||||
[time-color [_ value]] ;; path middleware adjusts the first parameter
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
You don't have to use this middleware directly. It is automatically applied to
|
||||
your handler's middleware when you use \"register-handler\".
|
||||
In fact, the only way to by-pass automatic use of \"pure\" in your middleware
|
||||
is to use the low level registration function \"re-frame.handlers/register-handler-base\""
|
||||
is to use the low level registration function \"re-frame.handlers/register-base\""
|
||||
[handler]
|
||||
(fn pure-handler
|
||||
[app-db event-vec]
|
||||
|
|
Loading…
Reference in New Issue