-
-
Notifications
You must be signed in to change notification settings - Fork 631
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
Putting back in pretty printing of JSON props? #799
Comments
I think it's unnecessary as you can use something like the following...
|
Pretty-printing was second reason behind me driving this change forward. Of course you can do pre-thing, console thing, or just mentally interpret JSON from attributes, but showing pretty-printed JSON in your source makes it so much more convenient and useful. You can do Ctrl-F in your view source easily, even if you don't have the same level of advanced developer console as is in Chrome (there are other browsers btw). This is one of the small changes which increase developer happiness, which Ruby and Rails are famous for. I do care. As I said, to fix the ActiveRecord issue we could probably add Thank you, |
@squadette can you help us with the change? and can we make it configurable in config/initializers/react_on_rails.rb. See this comment: #787 (comment) I'm OK with this if it's WELL TESTED given the cases where this broke. |
@squadette: Now that I merged #812, it would be very easy to do the pretty printing. Maybe this is the last thing before we go to beta for 7.0? |
@squadette any interest in taking a crack at this one? |
@justin808 I'll check this week what I can do |
Any votes for putting pretty printing of the JSON props in the HTML page source? We were doing that at first, but this resulted in some bugs.
@cheremukhin23 is working on #787 which would put that back in, along with some tests.
I’m not 100% sure we even want this, as it’s probably just as well to put a debugger statement or console log and see the props that way.
I’d really like some community feedback on this one.
Maybe if nobody here cares, it’s best to leave this one out?
The text was updated successfully, but these errors were encountered: