pnjun
SSolara
•Created by pnjun on 10/22/2024 in #questions-issues
Documentation on caching behaviour
Where can i find documentation / code examples on how solara handles component caching?
I noticed that sub components are not re-rendered when their parent is re-rendered if their arguments do not change and if they are in the same order. But if the arguments or the order changes, they get redrawn
I am rendering a list of components, to which i need to add in random locations. When adding to the bottom it works great, only rendering the new one, but when adding in other locations it forces a re-render of the whole list.
How can i explicitly control which elements are redrawn?
6 replies
SSolara
•Created by pnjun on 10/11/2024 in #questions-issues
Efficiently rendering a list of components
Hey!
I think i might be doing something in a non-solara way, since my app is having trouble re-rendering some compoents.
I have a 'logbook' component that displays a list of entries in a loop, something like this:
The issue is that every time the user adds an entry to the list all of the previous entries are re-rendered, and this can take quite awhile for a long logbook.
Is there a way to let solara know not to rerender all of the previous entries and just append the new one at the bottom of the container?
I feel i might be doing something wrong but don't know what 😅
Cheers and thanks!
9 replies
SSolara
•Created by pnjun on 8/31/2024 in #questions-issues
Markdown editor not entering space characters properly
When using the markdown editor, new lines will not accept spaces as input.
Every time a space char is inputted, it is displayed and then immediately overwritten by whatever the user types next.
However, if the space is deleted by the user by pressing backspace, the bug goes away and the editor works as intended (on that line). By looking at the raw markdown, you can see that the string " " is appended at the end of the line. It looks like the presence of that char at the end of the line fixes the bug.
I tested it in both vscode and mozilla firefox (both solara server and jupyter lab) and i can reproduce in all of them.
Hope this helps!
Cheers
1 replies
SSolara
•Created by pnjun on 8/29/2024 in #questions-issues
MarkdownEditor not displaying in vscode notebook
7 replies