Created
October 3, 2016 17:26
-
-
Save madvas/b5c8b35c1d586db4ae791c3812d61611 to your computer and use it in GitHub Desktop.
:contract/settings-loaded
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
(reg-event-db | |
:contract/settings-loaded | |
interceptors | |
(fn [db [[max-name-length max-tweet-length]]] | |
(assoc db :settings {:max-name-length (.toNumber max-name-length) | |
:max-tweet-length (.toNumber max-tweet-length)}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment