Document hybrid_property in the Vars section#6622
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
Greptile SummaryAdds a new Hybrid Properties documentation page (
Confidence Score: 5/5Pure documentation addition with no runtime code changes; safe to merge once the base PR (#6621) lands. The change is two files: a new markdown page and a one-line sidebar registration. The doc content was verified against the actual hybrid_property implementation in reflex-base — the f-string Var interpolation examples are correct, the API surface described matches the code, and the sidebar wiring follows the existing auto-discovery pattern correctly. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "Merge branch 'main' into claude/hybrid-p..." | Re-trigger Greptile |
bff3fa1 to
9c1894f
Compare
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
52d6b4d to
9f24352
Compare
Type of change
Note
Stacked on #6621 — base branch is
claude/hybrid-property-backend-var-guard. This PR contains only the docs; CI won't run until the base ismain.Description
Adds a Hybrid Properties page to the Vars section (
docs/vars/hybrid_properties.md) and registers it in the sidebar right after Computed Vars.The page contrasts hybrid properties with computed vars — the key distinction being that 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, making it a convenient way to reformat frontend data when needed. It also covers:
full_namefromfirst_name/last_name@<name>.var_-prefixed vars in frontend logic)Changes
docs/vars/hybrid_properties.md— new pagedocs/app/reflex_docs/templates/docpage/sidebar/sidebar_items/learn.py— sidebar entryhttps://claude.ai/code/session_01DKFiYGnWRQG8wMNKFW7obm
Generated by Claude Code