Fork me on GitHub
#reagent
<
2021-10-17
>
rberger23:10:40

Is there a way to instrument a reagent component to tell what prop/ratom change is causing it to re-render?

Lu11:10:24

You can make a reagent class and use component did update. You get in the args the old state and new state .. so you might diff them and see what caused the re-render 😊

rberger22:10:32

I did start down that path, but it was hard to see what changed just visually in the dev console. Guess I’ll have to write some diff code to check it