victorminimal
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
you can't just modify the list and set it as the new value, it will be "smart" and not trigger redraw
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
for lists it means a different instance
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
it's not enough to call .set on the reactive variable - the object has to be different
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
I figured it out, here it is for posterity
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
any help would be appreciated, please
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
should I be using context instead?
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
or does the state need to be global for that to work?
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
will this work properly?
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
one question: can I pass reactive objects created with use_reactive to child components?
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
I tried a bunch of other things and I'm drawing blanks
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
this is a bit weird... I'm not sure what to do to unblock this
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
I can see that the value was updated when the render eventually triggers, but the on_change callback doesn't trigger
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
when I set the value from the parent component, it works fine... but when I call .set in the child component, nothing happens
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
I added an on_change callback to use_reactive to just print to console on change
16 replies
SSolara
•Created by victorminimal on 12/3/2023 in #questions-issues
How does solara determine when to rerender a widget?
I ran a bunch of tests with the use_reactive option
16 replies