Lisa
Lisa
SSolara
Created by Lisa on 4/9/2024 in #questions-issues
Switching Tabs resets a state when lazy loading is set to True
I want to keep local state of components when switching Tabs but also I need lazy=True since I don't want inactive tabs to be rendered. Unfortunately, it seems to be impossible to have both. With lazy=True the local state of the components resets to default values, in the attached example I used solara.use_state, but the same holds true for solara.use_reactive. Is there a way to keep local state of the component when switching Tabs and having lazy loading too?
5 replies