victorminimal
victorminimal
SSolara
Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
I'm building a slightly more complex flow, and a widget I'm using doesn't refresh when I change a reactive variable it depends on. I have to manipulate the UI a bit for it to rerender. I'm not sure why this is happening. The relevant things to note are that I'm passing in the reactive state, and the widget only renders it. The state is a list of objects. For state ownership I tried a frozen dataclass + reducer, like in the calculator demo, and having the parent create state with use_reactive, and then pass it in to the child widget. Both result in the same behavior. Where can I read up on how this works? Is there a way to debug the widget's rendering dependencies?
16 replies