Fork me on GitHub
#reagent
<
2021-03-31
>
pmooser10:03:53

I've just updated to reagent 1.0.0 and I'm struggling to make code with error boundaries work.

pmooser10:03:01

Does anyone have a working example of error boundaries with 1.0?

p-himik10:03:00

The example from the documentation worked just fine for me. What exactly are the problems you're having?

pmooser10:03:29

I just stumbled across the example you pasted - let me try that one.

pmooser10:03:37

Maybe my test code is invalid or is blowing up too early or something. I'm just not seeing :component-did-catch getting called.

pmooser10:03:16

Ah I think I see what I am doing wrong.

pmooser10:03:16

Yes, it's my fault completely. I had two different rendering paths, and only one was using the error boundary.