Skip to content

Commit 9d3b480

Browse files
Update docs/state_structure/component_state.md
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent c615cf8 commit 9d3b480

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/state_structure/component_state.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ EditableText._per_component_state_instance_count = 4
174174
class EditableTextDemoState(rx.State):
175175
value: str = "Global state text"
176176

177-
def set_value(self, value):
177+
@rx.event
178+
def set_value(self, value: str):
178179
self.value = value
179180

180181
def editable_text_with_global_state():

0 commit comments

Comments
 (0)