A minimalistic ClojureScript interface to React.js
ChillPillzKillzBillz 2021-05-28T09:54:09.036300Z

Hi, I am learning clojurescript & reagent so a green newbie. I am struggling to render a form2 component. I keep getting #object[Error Error: No protocol method IDeref.-deref defined for type cljs.core/PersistentVector: [#object[reagent$core$atom] error. I can't understand what the error is... any pointers?

thheller 2021-05-28T09:57:17.037100Z

@abhishek.mazy you are using the deref @ on a vector. looks like you might have @[(r/atom {})] or (let [thing [something]] @thing) somewhere?

ChillPillzKillzBillz 2021-05-28T10:03:39.038Z

yes you are right. I found the bug. Will be more careful in future. Thanks!!

Ivan Fedorov 2021-05-28T14:03:37.038600Z

Hey there! What’s your opinion on the best approach to SSR with Reagent / re-frame? Any good recent articles? Or any drop-in replacements for reagent.dom/render ?

Mitch 2021-05-28T14:28:18.038900Z

I haven't attempted SSR, but I would check out if you haven't yet already

Ivan Fedorov 2021-05-28T14:34:33.039300Z

@mitchell_clojure ❤️

Mitch 2021-05-28T14:42:14.040900Z

Has anyone had success using event listener breakpoints with Reagent components? Is it possible to achieve? For example, if I put an :on-click listener on a Reagent component, I would expect the breakpoint to take me to the line of code where that listener is defined

p-himik 2021-05-28T16:53:40.041Z

Please don't ask the same question in multiple channels within a short time frame. I've answered in #re-frame

Mitch 2021-05-28T16:54:41.041200Z

My apologies, thanks for the answer