-
-
Save jeaye/5f1da6d07f011120c4a95b3843aa3177 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(re-frame/reg-event-fx | |
:start-playing | |
(fn [db _] | |
{:db (assoc db :is-playing? true | |
:fake (random-active-color db) | |
:real (random-active-color db)) | |
:interval {:action :start | |
:id :some-awesome-id | |
:frequency 1000 | |
:event [:tick]}})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment