Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiencing rerenders #14

Open
louisguitton opened this issue Nov 17, 2023 · 3 comments
Open

Experiencing rerenders #14

louisguitton opened this issue Nov 17, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@louisguitton
Copy link

I am unsure if this repo powers https://webui-teal-star.reflex.run/, but when I type in the chat, I'm getting hit by rerenders which lose some of my inputted information.
Only when I type slow enough, all letters go through without loss.
I am currently evaluation reflex vs streamlit vs gradio, and seeing a chat example that has no rerenders would help me in my decision-making process.
Best

For the lolz:
I asked the chatbot what to do, and it suggested to open an issue
image

@picklelo
Copy link
Contributor

Good catch, this is because we use the on_change handler currently which is sending a request on every key stroke. We should change this to use a rx.form and an on_submit

@picklelo picklelo added the enhancement New feature or request label Nov 26, 2023
@DonaldKellett
Copy link
Contributor

Just encountered this issue as well when trying out the online demo, I type at around 60-100 WPM on average and the UI kept eating up my words

IMHO this should be categorized as a fundamental usability issue, not a possible enhancement. It doesn't provide the end user an optimal first impression as a demo, and definitely makes it unsuitable for production use.

@jiangyangcreate
Copy link
Contributor

jiangyangcreate commented Dec 14, 2023

@louisguitton @DonaldKellett my PR Not just adding an extra API , also fix the bug , but it is not merger, you can refer it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants