refactor: allow to call Component.inject() outside of render (#1414)

This commit is contained in:
Juro Oravec 2025-09-29 14:53:01 +02:00 committed by GitHub
parent 1578996b21
commit b3ea50572d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 614 additions and 236 deletions

View file

@ -161,6 +161,9 @@ class ComponentView(ExtensionComponentConfig, View):
ComponentExtension.ComponentConfig.__init__(self, component)
View.__init__(self, **kwargs)
# TODO_v1 - Remove. Superseded by `component_cls`. This was used for backwards compatibility.
self.component = component
@property
def url(self) -> str:
"""