Fork me on GitHub
#re-frame
<
2018-12-13
>
Whiskas14:12:07

can someone assist me regarding how to propely setup re-frame 10x debugger with shadow-cljs?

Whiskas16:12:21

it worked, thanks

Whiskas16:12:38

i was inserting things in the wrong place

Whiskas16:12:48

is it commom to have re-frame events firing twice?

Whiskas16:12:16

like, you only dispatch it one time and it is actually called two times

danielneal16:12:24

It's most likely that dispatch is being called twice...perhaps an old event handler that hasn't been removed?

Lu20:12:25

In my case every time the code is hot reloaded with figwheel, all handlers get registered again... maybe this is what could happen to you? .. try to hard refresh your browser..

Whiskas20:12:12

Are you guys aware of any re-frame navigation extension besides re-jump for emacs?

Whiskas20:12:20

I would like to have an extension that autocompletes events and subscription names, jumps to their respective definitions and maybe search for usages (xrefs),

Whiskas20:12:43

I will do some research regarding how to build such extension for VSCode

Whiskas20:12:15

So it would be interesting to see if there are any examples of that in other IDE's

Whiskas20:12:37

And i would like to hear from you guys, how you usually navigate through your code

Whiskas20:12:42

@lucio, i think it is something related to the navigation code, i experimented with another event and it was triggered only once, but thanks for the suggestion

hoopes21:12:01

can i programmatically close 10x from the js console? (or from js executed via selenium for browser tests...)

Whiskas21:12:26

@hoopes disabling it before tests isn't an option? :thinking_face: ( just curious tho )

hoopes21:12:36

yeah, i could do it in the shadow-cljs.edn file, but i want to browser test and develop on the same app đŸ™‚ having it start as closed would also be an option, i suppose

Lu21:12:38

@mateus.pimentel.w if you paste your code we might be able to help :).. are you sure you are not using a subscription in the same place you are dispatching?