Skip to content
David Rickard's Tech Blog

David Rickard's Tech Blog

Whatever I'm working on, including TypeScript, Web Components, C#, WPF

Month: September 2020

Posted on September 28, 2020November 15, 2020

Error Handling in ReactDom.render() vs ReactDom.hydrate()

There is an oddity in the behavior of ReactDom.render() and ReactDom.hydrate(). Both have similar looking function signatures, so you’d expect them to handle errors in about the same way. And while they both will trigger error boundaries correctly, hydrate() will throw an exception if there was a problem rendering, while render() will not.

Hope this helps someone else.

Recent Posts

  • Monorepo with NPM Workspaces and Typescript
  • AWS Cognito Authentication in Electron
  • Efficient SVG icons in Web Components with Webpack and SVGO
  • How to Use Individual Code Signing Certificates to get rid of SmartScreen warnings
  • Microsoft.VisualStudio.ComponentModelHost.dll issues in Visual Studio extensions

Recent Comments

  • Russell Faux on Installing .NET Framework 4.7 automatically with Inno Setup
  • Russell Faux on How to Use Individual Code Signing Certificates to get rid of SmartScreen warnings
  • Sam on Implementing a Custom Window Title Bar in WPF
  • Mo. on Implementing a Custom Window Title Bar in WPF
  • David Rickard on How to Use Individual Code Signing Certificates to get rid of SmartScreen warnings

License

All code snippets are public domain.

Archives

  • December 2021
  • October 2021
  • May 2021
  • April 2021
  • February 2021
  • September 2020
  • May 2020
  • January 2020
  • October 2018
  • July 2015
  • April 2012
  • March 2010

Categories

  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress