A computed var's write to state during an ordinary event or client-side navigation is dropped depending on PYTHONHASHSEED; a write to a var that was not already dirty is always dropped

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

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

Hướng nghiên cứu

Start from the fix in #7460 (F-003), which made computed-var state writes survive page loads and reconnects, and find the equivalent delivery code for ordinary events and client-side navigation; the ordering of dirty vars there is what makes PYTHONHASHSEED matter. Read finding N-015 and the reverify_hydration / cvstore evidence in prerelease_testing/2026-10-07/FINDINGS.md (results/f003/, logs/seed-loop-a2-*.txt) to see the dropped-write cases. Done means either the event/navigation paths deliver computed-var writes deterministically, or the pattern is documented as unsupported with a warning plus a test that fails under a fixed PYTHONHASHSEED.

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

Mô tả

release-train

Severity: LOW, pre-existing (0.9.12 and 0.10.0a2). #7460 fixed the same pattern for page loads and reconnects (F-003 of the 10-06 QA); the event / navigation paths remain seed-dependent.

A @rx.var that assigns to another var while being computed (the pattern reflex-google-auth used to clear a bogus token) is delivered or dropped depending on the dict-order of dirty vars (PYTHONHASHSEED), and is always dropped when the written var was not already dirty. Either support the pattern consistently or document that computed vars must not write state and warn when they do.

Evidence: reverify_hydration cluster, cvstore variants (results/f003/, frames/), and the thirdparty_a2 seed loop (logs/seed-loop-a2-*.txt); finding N-015 in FINDINGS.md.

Ngôn ngữ chính
Python
Star
29k
Fork
1.8k
Merge trung bình
3 ngày 5 giờ
Pull request đã merge (30 ngày)
182

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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

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

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.