Fork me on GitHub
#re-frame
<
2018-03-26
>
curlyfry08:03:56

Has anyone here gotten the new tracing stuff in re-frame-10x 0.3.0 to work?

curlyfry08:03:31

I just get "no such namespace: debux.cs.core" when I follow the instructions here https://github.com/Day8/re-frame-10x/blob/master/docs/HyperlinkedInformation/EventCodeTracing.md

curlyfry08:03:21

After some digging, I think the documentation is slightly outdated, I believe it should be [day8.re-frame.tracing :refer-macros [fn-traced]] instead.

curlyfry08:03:05

Yeah, it's working now!

manuel08:03:06

thanks, the error is gone now. Although I can't see the event traced

manuel08:03:35

I'll try restarting Figwheel

manuel08:03:41

ok, it's working. Thanks again @curlyfry!

curlyfry08:03:54

np 🙂

curlyfry08:03:03

I submitted PR:s to fix the docs

gregg08:03:27

Apologies for the non-updated docs. PR accepted with thanks

gregg08:03:55

We still have to update some screen shots as well. Should be tomorrow

skammer09:03:00

Hey guys. What’s the most canonical way to handle forms and validation in re-frame?

manuel10:03:51

@skammer I don't know about "canonical", but I simply have the event handler doing some basic validation and if something's wrong, dispatch to an handler which shows an error message.

Bravi10:03:11

is it possible to change the app state from my REPL?

Bravi10:03:17

like - live change it?

Bravi10:03:15

when I use just atoms, it’s easy - I just change namespace to wherever my atom is and when run whatever function on my state

Bravi10:03:26

but in re-frame that part is sort of hidden so I can’t figure out how to do it

Bravi10:03:24

awesome, thank you!

borkdude11:03:49

if I want to say in a clojure.spec that a key must be a re-frame subscription, how do I construct the predicate?

borkdude11:03:42

it’s a reagent reaction right?

borkdude11:03:16

so I guess #(instance? Reaction %)

kanwei15:03:48

will a new release be pushed to fix the wrong reagent dependency in react16 branch?

kanwei20:03:50

:thumbsup: