Skip to content

Instantly share code, notes, and snippets.

@scottlowe
Created November 14, 2017 16:10
Show Gist options
  • Save scottlowe/3f7cfc9cf60e0af7f9f88029546a179c to your computer and use it in GitHub Desktop.
Save scottlowe/3f7cfc9cf60e0af7f9f88029546a179c to your computer and use it in GitHub Desktop.
Dispatch re-frame event "foo" with args "bar" from the JS console
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