You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#6946 uncached-var dedupe: every uncached var is re-sent once right after hydrate, dict key order defeats the dedupe, and the _UNKEYABLE_VALUE branch is unreachable #7253
bugSomething isn't workingperfPerformance-improving changesrelease-trainIssues found during agentic /prerelease-testing fanout, not necessarily validated bugs.
Three polish items in the #6946 delta dedupe for @rx.var(cache=False), found while verifying it end to end (the feature itself works: ~42% fewer inbound websocket bytes on the campaign's click sequence, correct per client token, survives reload and redis multi-worker).
Every uncached var is re-sent once right after hydrate.State.hydrate emits self.dict(), which does not go through the delta recording, so the very next event (on_load_internal, fired immediately) re-sends all of them: a 3 318 B hydrate frame followed by a 447 B frame containing only the uncached vars. One redundant frame per page load; on reconnect with a warm memo it does not appear.
Dict key order defeats the dedupe._delta_value_key digests the JSON text, so {"a": 1, "b": 2} and {"b": 2, "a": 1} have different keys and such a var is re-sent on every event, while the changelog says the value is "only included in the delta when it actually changed". Either canonicalize (sort_keys=True) or document it.
The _UNKEYABLE_VALUE branch is dead, and unserializable values dedupe against each other._delta_value_key treats a json_dumps exception as "always send", but reflex's json_dumps never raises for unknown types; it returns null for complex, a bare object() or an arbitrary class instance. Two different unserializable values therefore key identically: a complex(n, 1) var is never re-sent across three bumps.
To Reproduce
The campaign's elapp app and websocket-frame driver: event_loop/ (scripts/wsdrive.py, the /dedupe page; the Unkeyable.u_obj var for item 3), NOTES.md sections "#6946" and "anomalies" 1 to 3.
Expected behavior
Hydrate records what it sends (or on_load_internal skips values the hydrate frame carried); dict values are keyed canonically or the changelog states the limitation; values that serialize to null are either always sent or keyed by identity.
bugSomething isn't workingperfPerformance-improving changesrelease-trainIssues found during agentic /prerelease-testing fanout, not necessarily validated bugs.
Activity
linear-code commentedon Sep 22, 2026
ENG-12647