Fork me on GitHub
#reagent
<
2021-05-28
>
ChillPillzKillzBillz09:05:09

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?

thheller09:05:17

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

ChillPillzKillzBillz10:05:39

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

👍 3
Ivan Fedorov14:05:37

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 ?

eval-on-point14:05:18

I haven't attempted SSR, but I would check out https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md#server-side-rendering if you haven't yet already

❤️ 3
eval-on-point14:05:14

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-himik16:05:40

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

eval-on-point16:05:41

My apologies, thanks for the answer