Fork me on GitHub
#clojurescript
<
2023-08-29
>
zimablue00:08:25

is there anything native to clojurescript to read-str to EDN and track line numbers, or do I need to reach to rewrite-clj?

zimablue01:08:28

thanks, also not native but maybe lighter than rewrite

Harry09:08:42

This message contains interactive elements.

p-himik09:08:32

Answered in the original thread.

🙌 2
Kein14:08:37

Hi, are there good CLJS tools which print the stack trace alongside the concrete value being passed to the functions?

Kein14:08:30

I have a function which receives 1 argument, but cljs keeps trying to invoke the argument as function

Kein14:08:29

I’m not sure how to inspect what’s going on during executing this function

Kein14:08:31

I have an event

(def event-default {:status false :event {:type nil :edata nil}})
(defonce !event (atom event-default))
I set the event type and event data when I emit the function. And I use the following event system to dispatch
(e/defn event-system []
  (let [event (e/watch !event)]
    (when (= (:status event) true)
     (dispatch-event (:event event))
     (reset! !event event-default)
 )))

Dustin Getz15:08:36

looks like an electric issue, exploring in #hyperfiddle https://clojurians.slack.com/archives/C7Q9GSHFV/p1693321123284739

✅ 2