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

Aberta
#7,484 5 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
29k
Forks
1.8k
Merge médio
3d 5h
PRs com merge (30d)
182

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de reflex-dev/reflex

Todas as issues de reflex-dev/reflex

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.