reagent

2023-08-10T08:08:08.591329Z

Hello everyone 👋 I'm diving deep into how reagent works and I wonder how it captures the encompassing component to rerender when a state changes. I see in the code: run-in-reaction which seem to do exactly that, who calls it? and how is it interleaved in to the hiccup components tree?

p-himik 2023-08-10T08:35:37.675369Z

The :render function that Reagent creates for you when you create a Reagent component.

p-himik 2023-08-10T08:36:00.606409Z

> and how is it interleaved in to the hiccup components tree? Components are sorted from parents to children and the parents are rendered first.

2023-08-10T08:49:29.490619Z

🙏