Fork me on GitHub
#re-frame
<
2017-03-19
>
anthonylebrun00:03:36

I’m getting the above error and I’m not really sure what I’m doing wrong

anthonylebrun00:03:46

This seems to be the problematic function:

anthonylebrun00:03:26

I had just added the next-context argument

anthonylebrun00:03:34

Function was working fine before that change

sandbags00:03:14

Does anyone have an example of adding a custom Chrome devtools formatter? I can't make head nor tail of the documentation, or see anything in the source that suggests how its done

sandbags00:03:41

i have a reasonable simply object which wraps an id and it's very annoying to have it printed [object Object] everywhere

anthonylebrun03:03:27

@sandbags have you tried this?

anthonylebrun03:03:50

(devtools/install!) (enable-console-print!)

anthonylebrun03:03:06

(from the todomvc example)

anthonylebrun03:03:58

Using println gets me pretty clojure output

anthonylebrun03:03:58

Um, I may have misread your intention

shaun-mahood04:03:53

@sandbags: You'll likely have better luck in #clojurescript - a lot more people in there that might have had to do that.

sandbags08:03:58

@anthonylebrun yes, i'm looking to create a new formatter for an object not understood, rather than enabling formatters

sandbags09:03:00

@andre i'd like to be able to customise the way re-frisk displays objects

sandbags09:03:33

@andre i have objects as keys in a number of places and seeing a series of [object Object] {n keys} is making it difficult to browse

sandbags09:03:00

@andre in most cases these objects have a simple structure since they contain an id that could be sensibly displayed

sandbags09:03:47

at first i thought this was about Chrome formatters but looking at re-frisk-shell:frisk.cljs:90

sandbags09:03:01

i'm thinking this is an encoded behaviour of re-frisk?

sandbags09:03:03

i'm wondering if it would be possible to add custom Object formatters to re-frisk to handle this?

sandbags09:03:30

hrmm... perhaps I am mistaken, I built a new version replacing "Object" with "Frood" and I still see [object Object]

sandbags09:03:35

Ah, I mistake the relationship between object? and my object

sandbags09:03:04

so I'm getting the :else branch and (str data)

sandbags09:03:35

Okay I've created a hard-wired custom version of re-frisk-shell that displays my objects properly ... happy to talk about how we could implement custom formatters properly

markel10:03:03

Hi guys! It would be really helpful to have an example app with JWT / OAuth authentication. Also with routing: a sign-in page and some other pages, so that when unauthorized, it'll bring you to the sign-in page. Maybe someone can help?