Skip to content

Commit 593425f

Browse files
committed
Use state= not value=
1 parent 7d02692 commit 593425f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

shiny/ui/_chat.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ def tagify(self) -> TagChild:
119119
return ""
120120

121121

122-
# TODO: Barret - Integrate!!
123-
124-
125122
# TODO: UserInput might need to be a list of dicts if we want to support multiple
126123
# user input content types
127124
TransformUserInput = Callable[[str], Union[str, None]]
@@ -1508,7 +1505,7 @@ async def set_chatlas_state(value: Jsonifiable) -> None:
15081505
raise ValueError(
15091506
"Bookmarking requires a client that supports "
15101507
"`async def get_state(self) -> shiny.types.Jsonifiable` (which returns an object that can be used when bookmarking to save the state of the `client=`) and "
1511-
"`async def set_state(self, value: Jsonifiable)` (which should restore the `client=`'s state given the `value=`)."
1508+
"`async def set_state(self, value: Jsonifiable)` (which should restore the `client=`'s state given the `state=`)."
15121509
)
15131510

15141511
# Reset prior bookmarking hooks

0 commit comments

Comments
 (0)