mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 07:18:22 +00:00
Use the new low level API for non-pure handlers.
This commit is contained in:
parent
88ad167002
commit
3b8643cc01
@ -62,8 +62,8 @@
|
||||
|
||||
;; -- event handlers ----------------------------------------------------------------------------
|
||||
|
||||
(handlers/register ;; not pure
|
||||
:undo ;; usage: (dispatch [:undo])
|
||||
(handlers/register-base ;; not a pure handler
|
||||
:undo ;; usage: (dispatch [:undo])
|
||||
(fn handler
|
||||
[_ _]
|
||||
(when (undos?)
|
||||
@ -72,8 +72,8 @@
|
||||
(reset! undo-list (pop @undo-list)))))
|
||||
|
||||
|
||||
(handlers/register ;; not pure
|
||||
:redo ;; usage: (dispatch [:redo])
|
||||
(handlers/register-base ;; not a pure handler
|
||||
:redo ;; usage: (dispatch [:redo])
|
||||
(fn handler
|
||||
[_ _]
|
||||
(when (redos?)
|
||||
|
Loading…
x
Reference in New Issue
Block a user