Fork me on GitHub
#reagent
<
2017-10-21
>
wpcarro00:10:25

Does anyone have a good way of debugging why a reagent is rendering when it shouldn’t be?

wpcarro00:10:31

I’m using clairvoyant and reframe-tracer which is helpful, and the unintended render is easy to reproduce, but I cannot figure out why a change in my app’s state is triggering this render

wpcarro00:10:07

I imagine it has something to do reagent reactions, but I’m new to this space

mikethompson01:10:52

@wpcarro have a look through the tutorials at the bottoms of: https://github.com/Day8/re-frame/wiki Particularly "When do components update"

mikethompson01:10:03

Ultimately a view re-renders because either: - its parent re-rendered and provided new props (args) OR - a subscription which it uses re-ran and produced a new value