pnjun
pnjun
SSolara
Created by pnjun on 10/22/2024 in #questions-issues
Documentation on caching behaviour
Thanks a lot!
6 replies
SSolara
Created by pnjun on 10/22/2024 in #questions-issues
Documentation on caching behaviour
Could you explain how the .key() works? is there some documentation / link to the source i can have a look to?
6 replies
SSolara
Created by pnjun on 10/11/2024 in #questions-issues
Efficiently rendering a list of components
Thanks a lot!
9 replies
SSolara
Created by pnjun on 10/11/2024 in #questions-issues
Efficiently rendering a list of components
Hey! I got a snippet working. The problem is in the fact that my logbook class returns a new entry object every time you iterate over it, even if the contents are the same. I In hindsight, it is obvious that the automatic caching is not working, since i call the components with a different object as argument. I am thinking if i can change the structure of my logbook class to deal with this, but i do not know it that is possible. The solution with the .key call sounds like the perfect approach, but adding the .key call as you suggest does not do anthtying, the caching still does not work. You can try my snipped with and without the .key call and the result is always the same, the components are always re-rendered even if they have the same key. Here is the snippet: https://app.py.cafe/snippet/solara/v1#c=H4sIAFrcDGcAA41UXU_bMBT9K5Z5IJVCWvoBIxLaBmPapO2Fh-2BoMqNbxKrjp3ZLiWq-t93nY9SUFFJX-x7r8-559i3G5pqDjSmJyQtIF0SvXKkcK6y8XBotWSGRRyehiTThnCdrkpQjjmhVaJOCMb62ly4YrWIUl0O14Ln4Jzozg995VfFDxBUdZSyDIYlY8aBWhjgHKRtyEptgMAzKysJNlGirLRxpIVMkD2VzFpyp5ypg0GcKIIfh4zM50IJN58HFmQWEgfPrk_7z0cjHyTXTe4N1E8Hhi0kvAbEYAe4D-W7BCIUMUzlEEz2c_6rBUjedWidCWAw8GxfOlvRqkortDNRnuabsJVkdVuOUVP3eJURygXZqQEsxHVONk1-e4p4vmCN3nfORLfM8J0fjeA2_puZJddr1UI3Dnygm1_CuuaEANuDOp3nEkJ00s3bNVrZoawszC2-Dwi-M2lhQPDm8RrXQFhVYfu-eUYUrEnTxucWcV9mQu93MiWyJ7Rpc-e3P-Y975raE3rAwGgJ3fJF8J4nNyvntAokW4C8zjxza3FCQ6LVPJUiXV5LVi44i_fkBkq7zoX2RiuWew_2PXv1mAJf5otoSA38WwkDfowsjl3_njHj6soPYhvBPTr2R8Caxpm3MqTAhbtTHo_GzqwwUtWu0ArPVLXmgsPZ0ygaz6JzPIx94KDReEOfwFgcVxqPkVxrd68RctOzGdyFNC2E5Kidxg-7jGMLlIxJHGdX0Ph8NgppKdTfdjtpdz9A5AXy-K3geCwTEm4Q1YK51fhXIRSYdxh86dmircWSinlcSreP2_BAFx3R-WgWjcaTq_FkOp1eXV6MPr3b_gsmWhlV9WvkVnkPezWNPNjlxWw2a-CPmHLciE7YMRN6_YdVF73qy9lHOPG9YZjJY6R9nWf1v23YXAY-yIfH7X-KXjAkEwYAAA
9 replies
SSolara
Created by pnjun on 10/11/2024 in #questions-issues
Efficiently rendering a list of components
i will try to make something reproducible!
9 replies
SSolara
Created by pnjun on 10/11/2024 in #questions-issues
Efficiently rendering a list of components
I tried this and it does not seem to be any faster, everything is re-rendered anyway
9 replies
SSolara
Created by pnjun on 10/11/2024 in #questions-issues
Efficiently rendering a list of components
thanks a lot!
9 replies
SSolara
Created by pnjun on 10/11/2024 in #questions-issues
Efficiently rendering a list of components
Cool! Is there some documentation on the .key() method? Do i just call it on the component after i create it like this?
EntryRender(entry).key(f'some-prefix-{entry.id}')
EntryRender(entry).key(f'some-prefix-{entry.id}')
9 replies
SSolara
Created by pnjun on 8/29/2024 in #questions-issues
MarkdownEditor not displaying in vscode notebook
Wow, that was fast, thank you so much! Playing around I found another issue with the Markdown editor, i will make a new post, hope it helps. Thanks again for the effort!
7 replies