reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
2021-03-31T10:24:53.070900Z

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

2021-03-31T10:25:01.071200Z

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

p-himik 2021-03-31T10:27:00.071300Z

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

2021-03-31T10:32:29.071800Z

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

2021-03-31T10:34:37.072Z

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

2021-03-31T10:35:16.072200Z

Ah I think I see what I am doing wrong.

2021-03-31T10:36:16.072400Z

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

2021-03-31T10:36:19.072600Z

Thank you @p-himik

👍 1