-
-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect docstring for re-frame.core/debug
#676
Comments
I would also add the fact that the diff parts are console-printed completely bare - i.e. as Objects. That is not very helpful, unless you have extra tooling in place... I would have expected everything to to be printed out as EDN, otherwise what's the point? How am I expected to make sense of these Objects? Is no-one else having this problem? |
@jimpil Do you have |
That's the extra tooling I was referring to - I guess I can install it, but I kind of feel I shouldn't have to... |
In an ideal world, CLJS runs directly in a browser. ;) But Printing the EDN itself as a string would be much less useful - no interaction, potential data size issues, no proper representation for types that EDN doesn't handle, inability to drill down (e.g. you can right-click an expanded object when you have |
@jimpil I second the previous comment. |
Two fixes are possible:
I note that approach 1 is a slightly breaking change. Preferences? Either way, the docstring should be adjusted to mention that it uses |
This interceptor actually uses `(re-frame/console :log)` which uses js/console.log on javascript. Corrected. #676
The todomvc example doesn't use this interceptor. Corrected. #676
This interceptor actually uses `(re-frame/console :log)`, which goes to js/console.log on javascript. Corrected. #676
The todomvc example doesn't use this interceptor. Corrected. #676
Going with fix number 2 for now. @mike-thompson-day8 |
This interceptor actually uses `(re-frame/console :log)`, which goes to js/console.log on javascript. Corrected. #676
The todomvc example doesn't use this interceptor. Corrected. #676
The docstring says:
The actual implementation in
re-frame.std-interceptors
uses:Apart from using an incorrect level, the docstring also mentions
js/console
, which is incorrect.I'd argue that both places should use/mention
re-frame.core/console
. And definitely use/mention the same logging level, but whether:log
or:debug
I'm not sure.The text was updated successfully, but these errors were encountered: