Skip to content

Show the State Var and name as known on python side in all relevant tracebacks #5356

@Alek99

Description

@Alek99
reflex.utils.exceptions.VarAttributeError: The State var reflex___state____state__app___states___dashboard_state____dashboard_state.focus_data of type typing.List\[app.states.dashboard_state.FocusDataPoint] has no attribute 'map' or may have been annotated wrongly.

Currently we show the end user the compiled var name which can be confusing. Instead we should show the something like

reflex.utils.exceptions.VarAttributeError: The State var DashboardState.focus_data of type typing.List[app.states.dashboard_state.FocusDataPoint] has no attribute 'map' or may have been annotated wrongly.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions