【问题标题】:How to dispatch events in re-frame framework (clojurescript) in the REPL?如何在 REPL 中的 re-frame 框架(clojurescript)中调度事件?
【发布时间】:2019-07-18 20:48:00
【问题描述】:

我正在使用 figwheel,我想从 REPL 手动调度事件。

例如在我的应用连接到 REPL 之后

(in-ns 'my-re-frame.core)
(re-frame/dispatch-sync [::events/initialize-db])

我收到以下错误 “RuntimeException 无效令牌::::events/initialize-db”

我如何调度这些事件?以及如何在 REPL 中查看应用的状态?

【问题讨论】:

    标签: clojurescript read-eval-print-loop re-frame


    【解决方案1】:

    我认为这是因为我在 emacs 中使用带有 fighweel 的苹果酒,它试图找到 clj 扩展而不是 clj 的 conf

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-24
      • 2012-05-15
      • 2018-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多