Live data from Hacker News

Reactotron – CLI and OS X app for inspecting React Native and JS apps

github.com

21–25 of 25 posts

Re: Reactotron – CLI and OS X app for inspecting React Native and JS apps

#21

Earlier quoted context omitted.

I absolutely adore AVA. Two way dependency tracking is underhyped. You've done amazing work. Thank you.

Though off topic. Could you explain a bit more on what you mean by "two way dependency tracking" ? Something along the lines of why that is useful and how ava helps in this would be really helpful.

In watch mode, most testing frameworks can detect that you saved your test file and re-run it.

With AVA, if you save the file your test is targeting, it will re-run your test.

And every other test targeting it.

And every other test that has a nested dependency on it.

Re: Reactotron – CLI and OS X app for inspecting React Native and JS apps

#22
post #19
post #5

Earlier quoted context omitted.

Totally legit concerns. For me, I have visibilty issues into my apps when they grow. The ability to query your redux state tree for answers at any time without logging is helpful for me. Same with API calls... wait what did I just send? Thats not right! The subscribe feature allows you to keep an eye on subsets of your state tree as they change. Its all about focusing. Which is my achillies heel. What kind of tools a…

If you're using Chrome, I highly recommend the Redux DevTools extension. You'll have insight into your state, actions and even a timeline. With a little extra work (less than Reactotron) you'll get it working in React Native as well. I find it quite helpful.

+1 for Redux DevTools! Its great! The guy who wrote it is much smarter than me. :)

Reactotron has a slightly broader scope (read: not as feature complete with redux - eg, no time travel debugging). I do have things like api monitoring, logging, error tracking with source maps, and benchmarking.

I couldnt quite fit that in my demo gif. It took 11 takes to get what I settled on. I could use some improvement with that.

Re: Reactotron – CLI and OS X app for inspecting React Native and JS apps

#24
post #7
post #4

For me, one of the big drawbacks this has when compared to Redux logger middleware is that I can't inspect each object associated with a given action. Being able to watch my state mutate and look at it after the fact has been a great boon.

The new App supports this when you subscribe to paths in your state tree. It'll tell you: of the keys you're tracking, heres the adds, edits, and deletes. At mutation time. Redux logger indeed shows you all this info. My goal with this is not to show you everything, but just what matters. Debugging is a very personal thing. Hell, I remember using MessageBeep() in the 90's to help me debug. Whatever works!

Excellent, didn't know about the update.

Re: Reactotron – CLI and OS X app for inspecting React Native and JS apps

#25
post #20

Earlier quoted context omitted.

I am sorry, I meant to ask if React is as fast as writing applications in other langs like C/Java/Python/Go. I hear that JS is slow, plus I use a lot of apps based on electron and they are a bit slow, VSCode is a remarkable exception to that norm.

React Native uses native OS components, meaning they'll render fast. But if you want to do heavy computing you may get frame drops. Some bundled components are partially native and partially custom, so you'll still need to be mindful of how you work with them. There's a section in the React Native documentation dedicated to explaining this and I think it does a good job of it: https://facebook.github.io/react-native/…

Thank you!
Post reply on HN