cedricvlt / streamlit-condition-tree

A Streamlit component to build a condition tree
MIT License
68 stars 8 forks source link

Typing Crashes Streamlit App #8

Open Welnic opened 2 months ago

Welnic commented 2 months ago

Hi!

I've been able to reproduce a rather unique bug, it seems like typing fast in text fields or even typing at normal speed in larger trees crashes the component and renders the entire tree empty.

My understanding is that Streamlit is rerunning code whenever a field receives input (every key) and that may be the culprit, potentially debouncing user input could fix it but I can't determine whether this is a Streamlit issue, a streamlit-condition-tree issue or the actual react library issue.

I've recorded a Jam showcasing this happening in the official demo page here.

Welnic commented 1 month ago

Hi @cedricvlt

I'm following up on the issue I opened regarding the bug in the Streamlit Condition Tree component. I've implemented some fixes that address the problems I encountered and would like to suggest these changes for inclusion in a new version of the library.

These modifications have significantly improved the component's stability and user experience in my testing. You can find the implemented changes here: I would greatly appreciate it if you could review these changes and consider incorporating them into a new version of the library.