Overkey Reset leaves the client-state input populated

Đang mở
#324 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
66/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
frontend

Hướng nghiên cứu

Start with the Overkey app source at the referenced reflex-examples commit, especially the ClientStateVar and reset witness described in the issue. Then run the reusable browser flow in browser_flows.py and inspect its failing empty-input assertion after Reset. Done means Reset leaves the input empty and the round can start fresh.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Reset in the Overkey example restores the configuration controls after a typing round but leaves the shared client-State input populated. This reproduces before and after an unchanged app is upgraded from published Reflex 0.9.12 to 0.10.0a1; it is a preexisting example defect, not a demonstrated alpha regression.

Reproduce

Use the unmodified Overkey app from reflex-examples commit ebe19ff00dfee36f9d67a9a584840c6745950b05. A retained source copy and exact dependency graphs are also available below. Copy the app into a neutral directory and use an isolated published-package environment.

  1. Start the app with reflex run and open it in a browser.
  2. Choose 5 seconds in the time dropdown.
  3. Type the first ten characters of the displayed paragraph into the input.
  4. Wait for Time's up! and the accuracy result; the tested rounds reached 100.00% accuracy.
  5. Click the Reset button.

Expected: the input/client-State text is empty and a fresh round can start.

Actual: the controls return, but the input retains the previous text. The stable run retained course end; the alpha run retained into how b (the paragraph is generated, so text varies). Browser diagnostics contain no page errors or failed requests.

The source uses ClientStateVar.create("user_input", default="") and a reset witness component whose on_mount sets it to an empty string. The browser observation above establishes the failure; no fix or cause is claimed.

Environment and evidence
  • macOS, Python 3.13; stable Reflex/base 0.9.12, then an in-place upgrade to the exact alpha graph with Reflex/base 0.10.0a1.
  • App Python sources and rxconfig.py remained unchanged. Existing .web and reflex.lock were retained, followed by a successful cold alpha production export and the same browser flow in dev mode.
  • Upgrade report and frozen graphs.
  • Stable browser result and alpha result.
  • Reusable browser flow, including the failing empty-input assertion after Reset.
Ngôn ngữ chính
Python
Star
578
Fork
362
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của reflex-dev/reflex-examples

Tất cả issue của reflex-dev/reflex-examples

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.