Skip to content
RandomEngy's Tech Blog

RandomEngy's Tech Blog

Thoughts on C#, WPF and programming in general

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

  • Error Handling in ReactDom.render() vs ReactDom.hydrate()
  • AWS AppSync Resolvers – Finding what you’ve got in context
  • Implementing a Custom Window Title Bar in WPF
  • Dark Theme in WPF
  • Item change tracking in DynamicData

Recent Comments

  • Joe on Implementing a Custom Window Title Bar in WPF
  • RandomEngy on Implementing a Custom Window Title Bar in WPF
  • MICAH on Installing .NET Framework 4.7 automatically with Inno Setup
  • Joe on Implementing a Custom Window Title Bar in WPF
  • Jmutobu on Dark Theme in WPF

License

All code snippets are public domain.

Archives

  • 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