Created
November 14, 2017 16:10
-
-
Save scottlowe/3f7cfc9cf60e0af7f9f88029546a179c to your computer and use it in GitHub Desktop.
Dispatch re-frame event "foo" with args "bar" from the JS console
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
var eventArgs = [new cljs.core.Keyword("foo"), "bar"] | |
var evt = new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, eventArgs) | |
re_frame.core.dispatch(evt); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment