Since componentDidUpdate won't be called for the 1st render, if any error happens in the first render, it won't get redirection automatically. This is mentioned in the course itself here https://frontendmasters.com/courses/complete-react-v6/redirect-on-error/ @-0:47 seconds.
I can create a PR for a fix (here and in the other repo) in a couple of days once this issue is acknowledged/approved.
Let me know.
Since
componentDidUpdate
won't be called for the 1st render, if any error happens in the first render, it won't get redirection automatically. This is mentioned in the course itself herehttps://frontendmasters.com/courses/complete-react-v6/redirect-on-error/
@-0:47 seconds.I can create a PR for a fix (here and in the other repo) in a couple of days once this issue is acknowledged/approved. Let me know.