Repository navigation
Raise helpful errors for missing compiler contexts - #7517
harsh21234i wants to merge 2 commits into
Conversation
|
Merging this PR will degrade performance by 7.51%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ❌ | test_hydration_metadata[200] |
1.9 ms | 2.1 ms | -9.46% |
| ❌ | test_hydration_metadata[20] |
220.5 µs | 233.4 µs | -5.53% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing harsh21234i:fix/7489-context-outside-compile (a9a7cb9) with main (deea1c3)
Footnotes
-
18 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
Fixes #7489.
PageContext.get()andCompileContext.get()now raise descriptiveRuntimeErrors when called outside page compilation or compilation, instead of exposing the rawContextVarLookupError. OtherBaseContextsubclasses retain their existingLookupErrorbehavior.Adds regression tests and a
reflex-basebugfix news fragment.Validation: 47 focused tests passed; Ruff and Pyright passed.