React Router error reporting from scracth


React Router Guide

React Router error reporting from scratch

As awesome of developers as we all are, errors are bound to crop up in our apps. React Router allows us to be notified of these errors via a handleError function but what exactly can you do here? That's what my latest post covers. I'll teach you how to use source maps to pinpoint the source code where an error is coming from so you can jump on bugs faster. Check it out below.

React Router error reporting from scratch.

Currently Reading

I finished Marcus Aurelius's Meditations a few days ago. That's a sobering read. It's the personal journal of one of the greatest Roman emperors and Stoic philosopher. It's pretty repetitive but it contains a lot good messages about focusing on what truly matters. How life is a trial but you're in control with how you respond to it. I'm really glad I read it.

After Meditations, I wanted something a bit lighter to lose myself in so I reluctantly picked up Red Rising by Pierce Brown. I say reluctantly because I'm the type of person be skeptical of certain things if all I hear is good things. I'll think "It can't possibly live up to all the hype!". I'm about 100 pages in and so far it's good and just what I was looking for.


Is there anything React Router related you'd like me to cover? What are you working on? Reading anything good? Reply back to this email. I'd love to hear from ya.

Have a great Monday ✌️

ProgrammingAreHard

For developers looking to learn useful tips and tricks.

Read more from ProgrammingAreHard

React Router Guide Contributing Callsite Revalidation Opt-out to React Router If you’ve used React Router’s data APIs, you’ve probably noticed it revalidates all your loaders after mutations, even when you know that’s completely unnecessary. I got tired of implementing shouldRevalidate functions that ended up feeling really awkward. I found an old proposal from Ryan Florence in GitHub, and decided to take a crack at implementing it myself. A few months and one merged PR later, it shipped in...

React Router Guide How to execute api requests in React Router There's not a lot of opinions on how to structure code that interacts with apis in React Router apps. This is what I've come up with and the post I wish existed before I started using React Router's actions/loaders with my existing api(and if middleware existed back then). Check out the article here. Have a great Tuesday ✌️ Unsubscribe · Preferences

React Router Guide How I used Prettier to help me find and fix a bug I recently encountered a bug where a system that's been working for years stopped working after a code release. The confusing bit was that the updated code had absolutely nothing to do with the system that was breaking. Through a series of trial and error and lots of scratching my head, I ended up using Prettier to pinpoint where the problem was and was able to find and fix the bug. Check out the full write-up here. Have a...