Avatar for the reflex-dev user
reflex-dev
reflex
BlogDocsChangelog

Performance History

Latest Results

feat(state): let delta coroutines drop their key via sentinel (#6673) * feat(state): let delta coroutines drop their key via sentinel A coroutine value in a delta can now resolve to _DROP_FROM_DELTA to omit its key, so inclusion that can only be decided asynchronously is deferred into the delta and resolved post-hoc by _resolve_delta. Emptied state subdicts are removed as well. * fix(state): rebind EventContext to token being modified in modify_state Out-of-band modify_state (e.g. the shared-state fan-out recomputing another client's delta) runs in a task that copied the triggering event's EventContext. Fork and rebind the context to the modified token so consumers inside -- delta resolution, computed vars -- observe that token rather than the actor's inherited one. No-op when no EventContext is set. * Update reflex/state.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * test(state): cover subdict removal when all keys drop from delta * chore: add changelog fragment for PR #6673 * chore(state): add Final to typing imports --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
main
55 minutes ago
Raise a clear error when a hybrid property reads a backend var on a state (#6621) * feat: raise a clear error when a hybrid property reads a backend var on a state A hybrid property's frontend logic (its getter, or a custom @<name>.var function) runs with the state class as `self` when building the frontend var. Reading a backend (underscore-prefixed) var there previously baked the var's class-level default into the frontend as a frozen literal — a silent leak that never updates and is not reactive. HybridProperty.__get__ now wraps a state owner in a _StateBackendVarGuard while building the frontend var; reading a backend var raises HybridPropertyError, pointing at the misuse in the user's getter/.var function. Object-var owners (nested dataclass / pydantic / SQLAlchemy access) have no backend vars and are unaffected. The guard lives at the single point where state-ness is determined, so there is no redundant BaseState lookup. https://claude.ai/code/session_01DKFiYGnWRQG8wMNKFW7obm * fix(hybrid_property): return new descriptor from var() to prevent mixin mutation HybridProperty.var() now constructs a new instance instead of mutating self, matching property.setter semantics. This prevents a shared mixin descriptor from being silently mutated when one concrete subclass calls .var — other subclasses that inherit the mixin no longer see a leaked _var. Also adds an early-return in __get__ when owner.backend_vars is empty, skipping the guard entirely when there is nothing to guard against. --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Farhan Ali Raza <62690310+FarhanAliRaza@users.noreply.github.com> Co-authored-by: Farhan <www.mfarvirus@gmail.com>
main
1 hour ago
chore(state): add Final to typing imports
FarhanAliRaza:re-auth-state
1 hour ago

Latest Branches

CodSpeed Performance Gauge
0%
Document hybrid_property in the Vars section#6622
19 days ago
9f24352
claude/hybrid-property-docs
CodSpeed Performance Gauge
-3%
feat(state): let delta coroutines drop their key via sentinel#6673
1 hour ago
dccb4e5
FarhanAliRaza:re-auth-state
CodSpeed Performance Gauge
0%
5 hours ago
7b40b13
claude/hybrid-property-backend-var-guard
© 2026 CodSpeed Technology
Home Terms Privacy Docs