We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8813bcc commit a5e77f2Copy full SHA for a5e77f2
reflex/components/component.py
@@ -2194,7 +2194,17 @@ def get_component(self) -> Component:
2194
Returns:
2195
The code to render the component.
2196
"""
2197
- return self.component_fn(*self.get_prop_vars())
+ component = self.component_fn(*self.get_prop_vars())
2198
+
2199
+ try:
2200
+ from reflex.utils.prerequisites import get_and_validate_app
2201
2202
+ style = get_and_validate_app().app.style
2203
+ except Exception:
2204
+ style = {}
2205
2206
+ component._add_style_recursive(style)
2207
+ return component
2208
2209
2210
CUSTOM_COMPONENTS: dict[str, CustomComponent] = {}
0 commit comments