Skip to content

Commit 09150ee

Browse files
committed
Include required jsx and Fragment imports in ComponentVar
1 parent dcb1c10 commit 09150ee

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

reflex/components/component.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,6 +2646,12 @@ def _cached_get_all_var_data(self) -> VarData | None:
26462646
"""
26472647
return VarData.merge(
26482648
self._var_data,
2649+
VarData(
2650+
imports={
2651+
"@emotion/react": ["jsx"],
2652+
"react": ["Fragment"],
2653+
},
2654+
),
26492655
VarData(
26502656
imports=self._var_value._get_all_imports(),
26512657
),

0 commit comments

Comments
 (0)