Skip to content

Commit 27b88b5

Browse files
committed
Fix bug where the proxy session didn't have a restore context
1 parent f65f120 commit 27b88b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shiny/session/_session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,13 +638,13 @@ def verify_state(expected_state: ConnectionState) -> None:
638638

639639
# BOOKMARKS!
640640
if ".clientdata_url_search" in message_obj["data"]:
641-
self.bookmark._restore_context = (
641+
self.bookmark._restore_context_value = (
642642
await RestoreContext.from_query_string(
643643
message_obj["data"][".clientdata_url_search"]
644644
)
645645
)
646646
else:
647-
self.bookmark._restore_context = RestoreContext()
647+
self.bookmark._restore_context_value = RestoreContext()
648648

649649
# When a reactive flush occurs, flush the session's outputs,
650650
# errors, etc. to the client. Note that this is
@@ -1035,7 +1035,7 @@ def _request_flush(self) -> None:
10351035

10361036
async def _flush(self) -> None:
10371037
with session_context(self):
1038-
# This is the only place in the session where the restoreContext is flushed.
1038+
# This is the only place in the session where the RestoreContext is flushed.
10391039
if self.bookmark._restore_context:
10401040
self.bookmark._restore_context.flush_pending()
10411041
# Flush the callbacks

0 commit comments

Comments
 (0)