reflex-dev
reflex
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
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
docs: document hybrid_property in the Vars section Add docs/vars/hybrid_properties.md, contrasting hybrid properties with computed vars: a computed var computes on the server and caches/sends the result (duplicating data), whereas a hybrid property compiles to a client-side expression over existing vars and sends nothing extra — a convenient way to reformat frontend data when needed. Covers the custom @<name>.var frontend implementation, the backend-var restriction, and nested-object usage, and registers the page in the sidebar after computed vars. https://claude.ai/code/session_01DKFiYGnWRQG8wMNKFW7obm
claude/hybrid-property-docs
1 hour 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
test(state): cover subdict removal when all keys drop from delta
FarhanAliRaza:re-auth-state
1 hour ago
Bump base ui version for internal components (#6669)
main
3 hours ago
Fix render tree line in MCP/Skills sidebar sections (#6670)
main
4 hours ago
ENG-9503: Serve integration docs images locally (#6671) * init * updates * update * update * update * add tests here
main
4 hours 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%
Raise a clear error when a hybrid property reads a backend var on a state
#6621
5 hours ago
7b40b13
claude/hybrid-property-backend-var-guard
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs