Fork me on GitHub
#re-frame
<
2018-03-24
>
danielcompton09:03:20

Hi folks, re-frame-10x 0.3.0 is out now. It includes a big new feature: form level code tracing. You can apply this to your event handlers to trace the code that runs

👍 12
vex09:03:50

who knows how ":dispatch-n" works?

danielcompton09:03:13

Same kind of space as re-frisk. I’m biased, but I think ours is better 🙂 Try them both though

12
mikethompson09:03:09

@curlyfry Thanks. Keep in mind that we are after collaborators. It is interesting work and there's more to do. For example, the tracing doesn't currently handle condp very well.

curlyfry09:03:53

Interesting, I'll have a look.

pauld14:03:20

Does anyone remember what re-frame or reagent project (maybe by yogthos / D.Sotnikov) that had example code of how to build a mult-user real-time document editor?

pauld14:03:53

Maybe it was just some example code on someone's blog. I can't seem to find it again.

pauld14:03:10

If I recall correctly, the example code focused on the postgres database as being the 'truth' and maybe using postrges notifications over websockets to clients.

pauld14:03:05

I have this: http://yogthos.net/posts/2016-11-05-LuminusPostgresNotifications.html, but I thought there was more code fleshing out a particular use case.

mikerod15:03:09

I need to give re-frame-10x another shot it looks like. First time I tried it I was hurried and defeated. It was throwing errors in chrome having to do with its own components in the window it creates.

mikerod15:03:18

I know that is a terrible problem description though. I’ll give it another go. I need to see all these features in play. Been using re-frisk at this point. I sometimes just click around in it to see what the dB is looking like for troubleshooting

manuel16:03:20

@mikerod FWIW, I use re-frame-10x every day at work. It's been proving to be a fantastic tool to help me debug our re-frame apps. Although, I use Opera, not Chrome, and I have never tried re-frisk.

👍 8
mikerod16:03:03

@manuel Yeah I’m looking forward to trying it out again and getting it working. Looks promising

hoppy21:03:02

is there any alternate way to launch rf-10x other than ^H? someting is eating keys (maybe mousetrap) so we can't get it to launch

mikethompson22:03:40

> Sometimes achieving Step 1 on a really simple app - one without widgets - can be fiddly, because the browser itself hogs "input focus" and grabs all the keystrokes (like Ctrl-H) which don't then make it through to your app. You may need to be determined and creative with Step 1. I have every confidence in you.

hoppy22:03:49

@mikethompson got that, just wondering if there is a function we can call from inside cljs to launch it. We can't get the ^H to work, but we could likely dispatch sometihng if we knew what to call.

mikethompson22:03:30

That's a good idea. Could you raise a PR pls.

hoppy22:03:47

I will/shall

mikethompson22:03:41

@danielcompton might show up in about 24hrs (Monday morning for us) and give a suggestion ^^^ so check back

hoppy22:03:52

ubet. we are chomping for it in this project, very helpful in others.....

mikethompson22:03:13

Are you using Chrome?

hoppy22:03:32

yeah, but tried FF as well

mikethompson22:03:54

Are you sure you have the installation right?

mikethompson22:03:18

Because I'm almost certain we changed re-frame-10x so it opens by default

hoppy22:03:26

that could be in play. This is an older project, and I had to upgrade a lot of stuff today to get to that level.

mikethompson22:03:37

(I'm thinking on my feet here so maybe wrong)

hoppy22:03:41

old, react/reagent, etc.

mikethompson22:03:52

You'll need 0.7 of reagent

hoppy22:03:22

this might be a thing: [org.clojure/clojurescript "1.7.228"]

hoppy22:03:37

[reagent "0.7.0"]

mikethompson22:03:54

In your ticket you say you are using mousetrap ... hmm.

mikethompson22:03:07

I don't know anything about that but Hmm.

mikethompson22:03:16

It does sound suspicious

hoppy22:03:27

jah - we do ^G - be we aren't binding ^H. Got my coworker digging into disabling that for testing.

hoppy22:03:58

he put that in, I'm unfit to take it out w/o wrecking the whole town, atm.