Co-authored-by: Masen Furer <m_github@0x26.net>
This commit is contained in:
benedikt-bartscher 2024-11-11 21:56:35 +01:00 committed by GitHub
parent a91f89aade
commit d077034f5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2379,7 +2379,7 @@ class ComponentState(State, mixin=True):
if type(self)._mixin: if type(self)._mixin:
raise ReflexRuntimeError( raise ReflexRuntimeError(
f"{ComponentState.__name__} {type(self).__name__} is not meant to be initialized directly. " f"{ComponentState.__name__} {type(self).__name__} is not meant to be initialized directly. "
+ "Use the `create` method to create a new instance and access the statte via the `State` attribute." + "Use the `create` method to create a new instance and access the state via the `State` attribute."
) )
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)