diff --git a/examples/simple/src/simpleexample/core.cljs b/examples/simple/src/simpleexample/core.cljs index 50b2332..4a777d2 100644 --- a/examples/simple/src/simpleexample/core.cljs +++ b/examples/simple/src/simpleexample/core.cljs @@ -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 diff --git a/src/re_frame/middleware.cljs b/src/re_frame/middleware.cljs index 7d81bd8..ee0a4a6 100644 --- a/src/re_frame/middleware.cljs +++ b/src/re_frame/middleware.cljs @@ -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]